Last days my game getting exploited a lot, and the reason of it is spam tool from exploit named “Acrylix”, that taking every models of aim attacks and using it, it causing a lot of lags and killing everyone, how do i patch that in these tools so they dont do that again?
example of tool scripts:
Server Script:
local Event = script:WaitForChild("FrameEvent")
local model = game.ReplicatedStorage["Attack"] -- the name of the model here
Event.OnServerEvent:connect(function(player, mouseX, mouseY, mouseZ)
local the = model:Clone()
the.Parent = game.Workspace
the:SetPrimaryPartCFrame(CFrame.new(mouseX, mouseY+1, mouseZ))
the:WaitForChild("Creator").Value = player.Character
end)
Client Script:
local tool = script.Parent
local player = game.Players.LocalPlayer
local Cooldown = 5
script.Parent.Name = "Attack"
enabled = true
task.wait(0.01)
local Event = script.Parent.Script:WaitForChild("FrameEvent")
tool.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
if enabled == true then
enabled = false
script.Parent.Name = 'Cooldown'
Event:FireServer(mouse.Hit.X, mouse.Hit.Y, mouse.Hit.Z)
if script.Parent.Parent.Name ~= "Baby_Stando" then
task.wait(Cooldown)
script.Parent.Name = 'Attack'
enabled = true
end
end
end)
end)
I tried Many ways like putting model of the attack not in replicated storage, made script that changes tool name every 1 second, made script that kick you if you use Spam Tool but still nothing work its just bypassing this. Would really appreciate if someone will help me.