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

Why doesn't this teleport screen gui work?

torso = script.Parent.Parent.Parent.Parent.Character.Torso 

function onClicked(GUI)
		torso.CFrame = CFrame.new(Vector3.new(0,0,0)) 

script.Parent.MouseButton1Click:connect(onClicked)

FYI, i'm not getting anything in my output

2 comments

4

You are defintely getting an error...

1

Definitely you should get an error with that script.... First off there is no end for the function...

1 answer

Here's the script please give me a reputation after here

script.Parent.MouseButton1Click:connect(function()
for i,v in pairs(game.Players:GetPlayers()) do
	local teleportplace = game.Workspace.Part
	local name = v.Name
	local check1 = game.Workspace:FindFirstChild(name)
	local check2 = check1:FindFirstChild("Humanoid")
	v.Character:MoveTo(teleportplace.Position)
    end
end)

2 comments

0

Please Vote me a good Vote if this worked

0

Whoops you wanted a gui one just wait a sec ill fix this

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