how do i stop that?
i have in serverscriptservice 2 scripts, not local, this code
if game.Players.LocalPlayer.Backpack:FindFirstChild("pistol") then return end
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect( function(player) local tool = game.ReplicatedStorage.Pistol tool:Clone().Parent = player.Backpack end )
THE PISTOL IS CHANGED TO TrenchGun in the second one
Assuming this is a local script
if game.Players.LocalPlayer.Backpack:FindFirstChild("gunname") then return end
Although I don't suggest using a local script to check this, as exploiters can bypass it.