Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

1 comment

0

In " local tele = workspace.Teleports.Test " It should be " local tele = game.Workspace.Teleports.Test "

1 answer

✓ Accepted answer
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

2 comments

0

thx that worked

0

np,Thanks for accepting as answer :D

This discussion is preserved as it was. New answers, comments, and votes are closed.