–Zombie Script
script.Parent.zombie.Humanoid.Died:Connect(function()
print('It is dead!')
script.Parent.Parent.LevelsInfo.playerXP.Value += 15 --Put the directory to the playerXP
game.ReplicatedStorage.XPtrigger:FireClient(game.Players[script.Parent.Zombie.creator.Value])
end)
–Local
game.ReplicatedStorage.XPtrigger.OnClientEvent:Connect(function()
print('Received!')
script.Parent.XP.Visible = true -- Directory to the ui
wait(1)
script.Parent.XP.Visible = false
end)