I'm having trouble with something.
I have made a GUI with numbers 1-9 on it, But I need it so when you click 1 It teleports you to level one, When you Click 2 It teleports you to level , So on and so on.
If you can help me it'd be greatly appreciated! Thanksss!
-- In a local script player = game.Players.LocalPlayer button = script.Parent newplace = CFrame.new(0, 0, 0) -- where to teleport to function Clicked() if player.Character then player.Character.Torso.Anchored = true wait() player.Character.Torso.CFrame = newplace wait() player.Character.Torso.Anchored = false end end button.MouseButton1Click:connect(Clicked)
Put this in a Gui textbutton for each level