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

How can I do something to do something when a player joins?

Like for example, if a person joined, they would get an ff. How can I do that?`

1 answer

✓ Accepted answer

Simple. You use the PlayerAdded event. But fist, we must make a function that creates the force field.

function CreateFF(player)
	Instance.new("ForceField",player.Character) --Creates a new force field in the player's character
end

Now that we've done that, all we need to do is connect() the function to the PlayerAdded event.

function CreateFF(player)
	Instance.new("ForceField",player.Character) 
end

game.Players.PlayerAdded:connect(CreateFF)

Hope I helped!

I went from 15 to 0 reputation for no apparent reason. If I helped you, please vote me up and accept my answer and we will both get points!

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