I made a GUI that when a TextButton is pressed, the character who's name is inputted into a TextBox is teleported to a part's CFrame. Here is the script:
b = script.Parent.Parent.name.Text function transport() if b == game.Workspace:FindFirstChild(b) then game.Workspace.b.Torso.CFrame = game.Workspace.planetbeam.CFrame + CFrame.new(0,5,0) script.Parent.Parent.Parent.Parent:Destroy() else return end end
It simply does nothing and the output doesn't give me anything at all. Help?