|
| 26 Dec 2016 04:09 AM |
Hi i maked that scritp local player = game.Players.LocalPlayer
function onPlayer(player) while true do wait() local torso = player.Character.Torso if torso then local distance = (torso.Position - script.Parent.Position).magnitude if distance < 20 then player.PlayerGui.ScreenGui.ShopFrame.Visible = true else player.PlayerGui.ScreenGui.ShopFrame.Visible = false end end end end
game.Players.PlayerAdded:connect(onPlayer)
works prfect in roblox studio but when i go to server doesnt want to work someone help pls |
|
|
| Report Abuse |
|
|
| 26 Dec 2016 05:17 AM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character)
torso = character.Torso -- stuff
end) end)
Try this. |
|
|
| Report Abuse |
|