#Can someone help me with debounce

1 messages · Page 1 of 1 (latest)

dense breachBOT
#

studio** You are now Level 1! **studio

young haven
#

where code

young haven
#

@mellow fox

half sand
mellow fox
#

Ill send ina moment

#

mb

#

local rS = game:GetService("ReplicatedStorage")
local event = rS.hitboxEvent

----debounce needed here------
event.OnServerEvent:Connect(function(attacker, hit, victim)
local attackerId = attacker.UserId

local humanoid = victim.Parent:FindFirstChild("Humanoid")
if not humanoid then
    warn("victim not humanoid")
else
    print("humanoid found")
end

humanoid:TakeDamage(10)
print(hit)
print(victim)
print(attackerId)

end)

half sand
#

google roblox debounce

mellow fox
#

brah

half sand
#

bruh this isnt chatgpt, do some research

mellow fox
#

fuck na

orchid pilot
#

😭

#

how do u not know ts

mellow fox
#

Chill i mean player specific

orchid pilot
#

yes

#

its easy

#

make a table

mellow fox
#

Alr mb for asking yall are all insufferable

orchid pilot
#

add player onto table

#

if player is in table then return

#

add a delay to make sure they are not in debounce after allat

orchid pilot
#

🙄

#

im just saying

mellow fox
#

Shut up i ask a question all of yall start flaming

#

Im not born w knowledge bru chill

orchid pilot
# mellow fox Im not born w knowledge bru chill

Table -> Check if player is in table -> if player in table then return else continue with the script -> Add a task.delay to remove the player from the table after a specific amount of time

mellow fox
#

Alr

orchid pilot
#

Ok goodluck now