Thank you NotThatFamouss for teaching me how to add cooldown to teleport :D
code for the teleport:
local tool = script.Parent local plr = game:GetService('Players').LocalPlayer local mouse = plr:GetMouse() local deb = false local cooldown = 3 local function Tele() if deb then return end tool.Parent:moveTo(mouse.hit.Position) deb = true wait(cooldown) deb = false end tool.Activated:Connect(Tele)