Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Teleport GUI malfunction?

Asked by
JJ_B 250 Moderation Voter
9 years ago

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?

Answer this question