Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using this script
- --This script is made by Joriangames/Problox Studio Scripts
- --Want to know how to use this? Watch my tutorial:
- local KilledEvent = game.ReplicatedStorage.KilledEvent
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- char:WaitForChild("Humanoid").Died:Connect(function(killed)
- local killer = char.Humanoid:FindFirstChild("creator")
- if killer.Value then
- local killerName = killer.Value.Name
- KilledEvent:FireAllClients(plr, killerName)
- end
- end)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement