If I use plr.Name can it get hacked? Basicly some guy was able to do this
They used a remote event I believe and I wrote plr.Name instead of plr.UserId. This was just a way to give myself the pet.
I made a security check if the name was mine.
game.ReplicatedStorage.GameClient.Events.RemoteEvent.GivePet.OnServerEvent:Connect(function(Plr, CodeName)
if Plr.Name == "FelixProfit" then
Pet(Plr,CodeName)
else
Plr:WaitForChild("leaderstats").Fizz.Value -= 10000000000000000000000000
Plr:WaitForChild("leaderstats").Rebirths.Value -= 10000000000000000000000000
end
end)