|
| 07 Jan 2017 04:15 AM |
| Hey i really need help with onPlayerTouch event. I try to make so when player enter game then the player is Anchored so they can't move. I try to make so when player touch SpawnLocation then player is Anchored. I hope any one can help me |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2017 04:34 AM |
Hello! There is a better way than making the spawn anchor the player. You could have a script in the workspace anchor them when they join. If you want help with OnTouch then that is different.
Main Problem: If you want the player anchored when they join, you might do this:
(Normal script in the workspace)
function AnchorPlayer(plr) plr.Character.Torso.Anchored = true --Anchor player end
game.Players.PlayerAdded:connect(AnchorPlayer)
To unanchor them after one second:
function AnchorPlayer(plr) plr.Character.Torso.Anchored = true --Anchor player wait(1) --Wait one second plr.Character.Torso.Anchored = false --Unanchor player end
game.Players.PlayerAdded:connect(AnchorPlayer)
That is the basic concept of anchoring the player when joining in. Would you still like some help with OnTouched? |
|
|
| Report Abuse |
|
|
| |
|