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

I want to add a GUI that indicates the cooldown of the teleport any help?

Asked by 2 years ago
Edited 2 years ago

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)
0
fire remote events that create gui sne_123456 439 — 2y
0
oh thank you man it works Teerachor 2 — 2y
0
np sne_123456 439 — 2y

Answer this question