|
| 30 May 2013 07:10 PM |
This script is supposed to teleport the owner of a tycoon to a brick in their tycoon after the respawned. However, it is not working. Could you guys please help me? Script:
local Person = script.Parent.Config.Owner local TS = script.Parent.Tele
function onSpawn(player) if player == Person.Value then -- object value, not string player:MoveTo(TS.Position) end |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 May 2013 07:20 PM |
local Person = script.Parent.Config.Owner local TS = script.Parent.Tele
Person.Value.CharacterAdded:connect(function(ch) ch:MoveTo(TS.CFrame.p) end)
assuming Person is the objectvalue of the player, not the character... |
|
|
| Report Abuse |
|
|