1 | -- loadstring(game:HttpGet("https://pastecode.dev/raw/qp3tcppw/paste1.txt"))() |
2 | |
3 | local player = game.Players.LocalPlayer |
4 | local character = player.Character or player.CharacterAdded:Wait() |
5 | |
6 | local function ensureForceField() |
7 | if not character:FindFirstChild("ForceField") then |
8 | local forceField = Instance.new("ForceField") |
9 | forceField.Parent = character |
10 | end |
11 | end |
12 | |
13 | -- Check initially |
14 | ensureForceField() |
15 | |
16 | -- Continuously check and recreate the ForceField if necessary |
17 | character.ChildRemoved:Connect(function(child) |
18 | if child.Name == "ForceField" then |
19 | wait(0.1) -- Small delay to ensure the deletion is complete |
20 | ensureForceField() |
21 | end |
22 | end) |