Roblox Studio and Experience runtime are different

Pistol must shot with cooldown in 0.05s but in roblox client feels like this takes 1~3s reload
The task.wait()s and not only are seems taking more longer in roblox player than in studio and im really, REALLY confused why this happens, just like im not using outdated wait() and using his task variation but that not seems very helping, i can show it must look and how it looks in roblox player.

1 Like

is this delay in a while loop?

script looks like

local t = script.Parent
t.Activated:Connect(function()
if not cooldown then

cooldowned = true

-- it play animation
-- it play sound

-- deals damage etc

task.wait(0.05)

cooldowned = false

else

end
end)

I think of making if cooldown (which is a boolean: true) then return end (it’s not neccessary add to else unless something)

does it change ?

the issue is not in cooldown, please read whole post again and then return here

The issue may be server/client latency