Do something like this. Make sure you have a TextButton in your GUI. Just to clarify, this script I am about to give will teleport the player to a VIP room. I hope I am not mistaken. :/
Put a LocalScript in the ScreenGui that has your button. Do not change the name of ANYTHING. (Besides the text in the button.) :)
1 | Button = script.Parent.TextButton |
2 | Button.MouseEnter:connect( function () |
3 | Button.MouseButton 1 Click:connect( function () |
4 | game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(...) |
Be sure to edit where the character is teleported in this script! I just did 3 dots for the explanation.
Hope this helps! Message me, gkCode, on ROBLOX if you need help.