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
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