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

I can't get my player to teleport, why is that?

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)


1 answer

Ha, forget it! I didn't put enough .Parentin! Whoops!

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