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
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
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)
Please Vote me a good Vote if this worked
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.
2 comments
You are defintely getting an error...
Definitely you should get an error with that script.... First off there is no end for the function...