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

SurfaceGui Teleport not working?

Asked by 8 years ago

Teleport script doesn't work The script is into a SurfaceGui Button like Part > SurfaceGui > Button > Script

function onClicked()
    if script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Board") ~= nil then 
        script.Parent.Parent.Parent.Parent.Character.Board:remove()
    end
    script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-195.92, 42.685, -29.3) 
end
script.Parent.MouseButton1Down:connect(onClicked)

Thanks

0
It looks like you have a few syntax errors. Such as :remove(), This should be capitalized as :Remove(). Can you check the Output Please? minikitkat 687 — 8y
0
I don't think the :remove() is the issue, I just think that it's .MouseButton1Click not MousButton1Down Scootakip 299 — 8y

Answer this question