game.ReplicatedStorage.InventoryEvents.EquipTenKillsPrize.OnServerEvent:Connect(function(Player)
game.ReplicatedStorage.InventoryItems.Pot:Clone().Parent = Player.Character
Player.Inventory.TenKillsPrize.Value = 1
Player.Inventory.ThirtyKillsPrize.Value = 0
Player.Inventory.FiftyKillsPrize.Value = 0
Player.Character:FindFirstChild("StudVR"):Destroy()
Player.Character:FindFirstChild("FlamingHorns"):Destroy()
end)
game.ReplicatedStorage.InventoryEvents.EquipThirtyKillsPrize.OnServerEvent:Connect(function(Player)
game.ReplicatedStorage.InventoryItems.StudVR:Clone().Parent = Player.Character
Player.Inventory.ThirtyKillsPrize.Value = 1
Player.Inventory.TenKillsPrize.Value = 0
Player.Inventory.FiftyKillsPrize.Value = 0
Player.Character:FindFirstChild("Pot"):Destroy()
Player.Character:FindFirstChild("FlamingHorns"):Destroy()
end)
game.ReplicatedStorage.InventoryEvents.EquipFiftyKillsPrize.OnServerEvent:Connect(function(Player)
game.ReplicatedStorage.InventoryItems.FlamingHorns:Clone().Parent = Player.Character
Player.Inventory.ThirtyKillsPrize.Value = 0
Player.Inventory.TenKillsPrize.Value = 0
Player.Inventory.FiftyKillsPrize.Value = 1
Player.Character:FindFirstChild("Pot"):Destroy()
Player.Character:FindFirstChild("StudVR"):Destroy()
end)
How do I fix this?