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

How to make a teleport screen GUI that is using Create and Save place API?

I want to know how to make a teleport GUI that shows all the servers going and you are able to teleport to your own world, kind of like Work At A Pizza Place.

7 comments

0

Good for you. What is it you needed help with. We won't do this for you. THIS IS NOT A REQUEST SITE.

0

I'm not requesting... Let me reword this: Do I need to change the OnTouched to OnClicked in the script inside the screen GUI

0

Yes... If the script was inside of a textbutton then the local script function would look like this, if the local script was inside of the TextButton, script.Parent.MouseButton1Down:connect(function(mouse). Touched doesn't work in screen GUIs.

0

I think you should learn how GUIs work first.

0

^ You're being a bit rude. Consider saying nicer things, please.

0

I wasn't trying to be rude. I'm literally suggest learning how GUIs work. Here's a link for some info on that, http://wiki.roblox.com/index.php/GUI_Guide twards the bottom of the page there is the exact info you're looking for. I wasn't even being rude in this question. However, I am sometimes. I'll try.

1 answer

Will this help?

game.Workspace.Player.Torso.Position = Vector3.new(0, 50, 0)


game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(0, 50, 0))


target = CFrame.new(0, 50, 0) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
   --Make sure the character exists and its torso exists
   if player.Character and player.Character:FindFirstChild("Torso") then
       --add an offset of 5 for each character
      player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
   end
end

player = game.Players.Player --you might want to change this...
target = Vector3.new(20, 10, 20) --...and this
 
function fadeTo(a, b, c)
	for transparency = a, b, c do
	--go from a to b, counting by c
 
		for _, part in pairs(player.Character:GetChildren()) do
		--for each of the objects in the character,
 
			if part:IsA("BasePart") then
			--check if it's a part, and if so
 
				part.Transparency = transparency
				--set its transparency
			end
		end
		wait(0.1)
	end
end
 
fadeTo(0, 1, 0.1) --fade out,
player.Character.Torso.CFrame = target --teleport the player
fadeTo(1, 0, -0.1) --fade back in


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