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

how do i make this teleport GUI work? it doesent error it just doesent work

Asked by 6 years ago

so im making a tele GUI but currently it is not working

local tele = workspace.Teleports.Test
local cords = tele.Position
function Click()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(cords)
script.Parent.MouseButton1Down:connect(Click)
end

it doesn't show a error in dev console so im not sure what is wrong

0
In " local tele = workspace.Teleports.Test " It should be " local tele = game.Workspace.Teleports.Test " SkatePro888899999 5 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
local tele = workspace.Teleports.Test
local cords = tele.Position
script.Parent.MouseButton1Down:connect(function()
    script.Parent.Parent.Parent.Parent.Character.HumanoidRootPart.CFrame = CFrame.new(cords)
end)

your event was inside function,that's why it was not working

0
thx that worked ForgotenR4 68 — 6y
0
np,Thanks for accepting as answer :D TheSkyofIndia 150 — 6y
Ad

Answer this question