First Im gonna tell you whats suppose to happen I click a button then a GUI Pops Up and ask you if you want to be teleported If you click yes it will if no it will close but when i clicked yes it dosent teleport please assist me
Here's the script i used
print("Teleport!")
button = script.Parent
window = script.Parent.Parent
function onClicked(GUI)
onCLicked.Parent.Torso.CFrame = CFrame.new(Vector3.new( -737.12, -267.22, 391.47)) --change the zeros to where you want the player to end up.
end
script.Parent.MouseButton1Click:connect(onClicked)
