This is how the script Looks like:
function onClicked() wait(1) local c = game.Players:GetChildren() for i = 1, #c do c[i].Character.Torso.CFrame = CFrame.new(game.Workspace.Locker1Teleporter.GG.Position) end end game.Workspace.Locker1Teleporter.TeleportG.ClickDetector.MouseClick:connect(onClicked)
I HAVE TRIED: -- "parent.parent" method ect and it did not work. -- F9 on Online, Console said NOTHING :o -- Changing the "Parent" into a longer version, as seen above.
Here is how it originaly looked like:
function onClicked() wait(1) local c = game.Players:GetChildren() for i = 1, #c do c[i].Character.Torso.CFrame = CFrame.new(script.Parent.Parent.GG.Position) end end script.Parent.TeleportG.ClickDetector.MouseClick:connect(onClicked)
What i have made is so that if you click on the "Locker" as ive created you will be teleported "Inside" of it, it worked in "Play Solo" but NOT in Server.
Here is the game: http://www.roblox.com/Escape-place?id=184349084
So, any tips or fixes? The answear might be easy visible but im kindoff new to Scripting. (Allso im new to the ScriptHelper Community) ~ THANKS ~
Strange, for me the second one worked in an online game...
If you spawned in the room with the lockers then the reason was the range is too much and its not activating