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

Can Somone Help make a Cooldown for a Slash? [closed]

Asked by 7 years ago

I do not Know Lua Lua C or Script I know a little bit of scripting tho! Help please!!!!

0
Boi, I helped u earlier and u said show ur work. What did I get back? Not even answer accepted. Moderated BlackOrange3343 2676 — 7y
0
Please i dont know how to do nothing XxWingKing 96 — 7y

Closed as Not Constructive by BlackOrange3343 and cabbler

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 7 years ago
Edited 7 years ago

To make a cooldown you would want to use debounce example: it can be named anything not just debounce

local debounce = false

tool.Activated:connect(function()
    if debounce == false then
        debounce = true
        print('henlo my dudes') -- the stuff you want to be activated for the script
        wait(.25) -- cooldown
        debounce = false -- makes it false so it can run again
    end
end)
Ad