print("Close button loaded")
button = script.Parent
window = script.Parent.Parent.Parent
function onClicked(GUI)
window:remove()
end
script.Parent.MouseButton1Click:connect(onClicked)
print("Gender Selection")
torso = script.Parent.Parent.Parent.Parent.Character.Torso
function onClicked(GUI)
torso.CFrame = CFrame.new(Vector3.new(-3.89, 1.09, -22.006)) -- CHANGE THE NUMBERS TO WHERE YOU WANT TO TELEPORT TO!
end
script.Parent.MouseButton1Click:connect(onClicked)
Reminder: This Script is a Close on click and teleportation script
This may help http://gyazo.com/48702c7a2f4b9f7018bea7fb35da637a

2 comments
Said GUI was an invalid piece of code and it didn't work it didn't diseapper when clicked
It's just an Example.. Just change it around.