#Can someone help me with debounce
1 messages · Page 1 of 1 (latest)
where code
@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)
google roblox debounce
brah
fuck na
Chill i mean player specific
Alr mb for asking yall are all insufferable
add player onto table
if player is in table then return
add a delay to make sure they are not in debounce after allat
oh my bad we're not spoon feeding
🙄
im just saying
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

Alr
Ok goodluck now
** You are now Level 1! **