Advertisement
Joriangames

KillStreak textlabel Handler

May 4th, 2022
1,912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. --[[
  2. Thanks for using this script
  3. This script is made by Joriangames/BloxianCode
  4. Want to know script explanation?
  5. Check the video here: https://youtu.be/Ji8_SmfGssg
  6. ]]
  7. local plr = game.Players.LocalPlayer
  8. local StreakLabel = script.Parent.StreakLabel
  9.  
  10. local streak = plr:WaitForChild("leaderstats"):WaitForChild("Streak")
  11.  
  12.  
  13.  
  14. streak.Changed:Connect(function()
  15.     if streak.Value == 1 then
  16.         StreakLabel.Text = "Well done, you got your first kill!"
  17.         StreakLabel.Visible = true
  18.         StreakLabel:TweenSize(UDim2.new(0,370,0,33),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  19.         wait(3)
  20.         StreakLabel:TweenSize(UDim2.new(0,205,0,33),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  21.         wait(0.3)
  22.         StreakLabel.Visible = false
  23.        
  24.     elseif streak.Value == 2 then
  25.         StreakLabel.Text = "You're improving, this is your second kill!"
  26.         StreakLabel.Visible = true
  27.         StreakLabel:TweenSize(UDim2.new(0,370,0,33),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  28.         wait(3)
  29.         StreakLabel:TweenSize(UDim2.new(0,205,0,33),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  30.         wait(0.3)
  31.         StreakLabel.Visible = false
  32.        
  33.     elseif streak.Value == 3 then
  34.         StreakLabel.Text = "Tripple kill!"
  35.         StreakLabel.Visible = true
  36.         StreakLabel:TweenSize(UDim2.new(0,370,0,33),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  37.         wait(3)
  38.         StreakLabel:TweenSize(UDim2.new(0,205,0,33),Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  39.         wait(.3)
  40.         StreakLabel.Visible = false
  41.     end
  42.    
  43. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement