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

Teleport Gui not working?

I have a Teleport Gui, but It isn't working. I think the reason is that I didn't locate the Gui correctly in the Lighting but I'm not 100% sure. Please help!

function Click()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(0,0,0)
end

script.Parent.MouseButton1Down:connect(Click)

1 answer

You didn't locate the GUI in Lighting? Puzzled... If it is in Lighting, have a script Parent it to their PlayerGui. Make it a local script and:

script.Parent.MouseButton1Down:connect(function()
	game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(0,0,0)
end)

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