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: https://youtu.be/XjtCqL0V6t0
- local cam = game.Workspace.CurrentCamera
- local KillText = script.Parent.KillText
- local plr = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
- local char = plr.Character or plr.CharacterAdded:Wait()
- local hum = char:WaitForChild("Humanoid")
- local ImageLabel = KillText.ImageLabel
- local Green = Color3.fromRGB(0, 255, 0)
- local Red = Color3.fromRGB(255, 0, 4)
- hum.Died:Connect(function()
- local mur = char.Humanoid:FindFirstChild("creator")
- local murChar = mur.Value.Character
- local murName = mur.Value.Name
- local murHealth = murChar:FindFirstChild("Humanoid").Health
- local murId = mur.Value.UserId
- if mur.Value then
- KillText.Visible = true
- cam.CameraSubject = murChar.Humanoid
- KillText.MuderName.Text = murName
- local roundValue = (math.floor(murHealth))
- local maxH = murChar:FindFirstChild("Humanoid").MaxHealth
- KillText.MurderHP.Text = roundValue
- KillText.MurderHP.TextColor3 = Red:lerp(Green, roundValue / maxH)
- ImageLabel.Image = game.Players:GetUserThumbnailAsync(murId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
- wait(5)
- KillText.Visible = false
- cam.CameraSubject = hum
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement