i have a custom tool that has a reload time.
but i dont want exploiters to get to the event and fire it when its reloading so they can spam bullets. how can i accomplish this?
works something like this:
reloading = false
function fire()
FE.Event.Shoot:FireServer() --Problem is here. if the client can access rep storage then cant they just evade having to reload and spam bullets? how do i prevent this
end
function click()
fire()
reloading = true
end

2 comments
If you are really concerned with exploiters I would have the server keep track of reloading/cooldowns and then check everytime a player wants to "fire" if they are reloading/allowed to do so
thanks buddy although i new that. i was still trying to figure out how i should try and approach the problem. but your comment gave me confidence and i just solved it. if i could upvote you i would.