I am making a game where in the menu, the player should teleport to the start location whilst the GUI menu hides. Why doesn't this work?
function onClicked()
wait(.1)
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-8.007, 4.304, -58.301)
wait(.1)
end
script.Parent.MouseButton1Click:connect(onClicked)
