Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this forcefield appear only on me, and how do I make it infinite?

I wanna troll in my game ;) Here's my script so far:

local player = game.Players.LocalPlayer
if player == izanagi456 then
game.Players.PlayerAdded:Connect(function(p) 
    p.CharacterAdded:Connect(function(c) 
        local ff = Instance.new("ForceField")
        ff.Visible = false
        ff.Parent = c
end
)
end
)
end

1 answer

✓ Accepted answer

You would just check if the name was yours and then add the ForceField Alot of your code was wrong too. Put this in a normal script inside ServerScriptService.


game.Players.PlayerAdded:Connect(function(p) 
    p.CharacterAdded:Connect(function(c) 
        if p.Name = "Your name here" then
              local ff = Instance.new("ForceField")
              ff.Visible = false
              ff.Parent = c
       end
    end)
end)

1 comment

0

oh k thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.