✓ Accepted answer
Force Fields don't go inside the player's torso. It only goes inside the character:
function newPlayer(player)
local ff = Instance.new("ForceField")
ff.Parent = player.Character
end
game.Players.PlayerAdded:connect(newPlayer)
Also, did you know that Instance.new() has 2 arguments? The object and the parent! So line 3 isn't needed.
function newPlayer(player)
local ff = Instance.new("ForceField", player.Character)
end
game.Players.PlayerAdded:connect(newPlayer)
EDIT
Like how the Jash50 said. Maybe the character hasn't been added yet because this script runs when the player joins the game. But when this happens the game isn't fully loaded for that player. Use this script to wait until the character is loaded.
game.Players.PlayerAdded:connect(function(plyr)
plyr.CharacterAdded:connect(function(char)
local ff = Instance.new("ForceField", char)
end)
end)
Also, if the player dies the character is added again so the function is triggered again. You don't need to have any Died event here.
3 comments
Okay then.
still doesn't work
I tried it and it still never worked