Hi everyone, I’m creating an in-game event where players launch a rocket by spamming keyboard keys. Each key press triggers a particle emission. Is this an efficient approach?
Here’s a simplified script
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(Input, GameProcessed)
if GameProcessed then
return
end
script.Parent:Emit(1) -- Parent is the ParticleEmitter
end)
You should add settings for it to disable particles, also add Visual Debounce
If you don’t know there are 2 types of checks: Visual ones are on client and prevent normal players from breaking their visuals, also they can reduce bandwidth sometimes, for instance debounce on both client and server can bypass normal player from spamming remotes, soo it would be a lot harder to lag the whole server with autoclicker