Like teleport from a spawn to a volleyball court already made or from anywhere else to the volleyball court by clicking a GUI screen that reads "VolleyBall Court" or another way is from anywhere else in the game to the spawn by clicking a GUI on the screen that reads "Teleport to spawn" I have the GUI's made already, all I need is the teleporting help! and if anyone could be extra helpful how do you open a medium sized shop in the middle of the screen that scrolls, shows items picture and price and closes on a click of "Open Shop" GUI after clicking it to open shop. It might be a lot of coding but you don't have to help me with the last one. Thanks
port = game:service("TeleportService") function onClicked() wait() port:TeleportToSpawnByName(158361348, "SpawnLocation", character) --Change 158361348 to your PlaceID end script.Parent.MouseButton1Click:connect(onClicked)
Next time, have a 'proper' question (By that I mean this isn't a request service, this is a place to get help on broken/problematic scripts!)
First put a screenGUI in starter GUI then in the screen GUI put a text button then put a script in it .
player = script.Parent.Parent.Parent.Parent -- This means we are calling the player to a script so script.TextButton.ScreenGUI.his parent which is StarterGUI. and the final parent Workspace function onClicked() -- making a function so we can click the TextButton. player.Character:MoveTo(Vector3.new(189.6,20.19,224.4)) -- type in the coordinaces here end -- we are ending it. script.Parent.MouseButton1Down:connect(onClicked) -- Here We are saying that are function has to work and were putting the function into action -- Here we have it:) only change the coordinances to where you want them to be..
I hope this helped:) post if in comments if it worked. There is different ways to do it but i find this one simple:)