:siren: I misread the OP this is to make the stool use slower and not the time interval between props :siren: :
[lua]
–/////Tool Slowerer
–// Made by Commander2040
local ToolTable = {
}
local function AddToolSlower(name,duration) --//We make this function to simply make the script more readable
local t = {}
t.name = name
t.duration = duration
ToolTable[name] = t
end
–//AddToolSlower(“remover”,0.2) --//Use the function like this: AddToolSlower(<name of tool>,<duration>)
hook.Add(“CanTool”,“ToolSlowerer_CanToolHook”,function(ply,tr,name)
if ToolTable[name] then --//Do we have to check for this tool?
if gamemode.Call(name,ply,tr,name) then --//What if the gamemode says no?
--//Then do nothing!
else
local last_call = ply["last_"..name] or 0 --//If he spawned he first spawned the player doesnt got this Variable so it defaults to 0
if (CurTime()-last_call) > ToolTable[name].duration then --// We check does the difference match the duration?
ply["last_"..name] = CurTime() + ToolTable[name].duration --//Yes it did reset the timer
return true --// Allow the player to use this
else
return false --//Else nope sorry you cannot use this.
end
end
end
end)
[/lua]