Sungmingamerpro13

Lucky/Unlucky Script (Tool)

Mar 19th, 2026
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.65 KB | None | 0 0
  1. script.Parent.Equipped:Connect(function()
  2.     if script.Parent.Parent.UpperTorso:FindFirstChild("Cursed") then return
  3.     else
  4.         local Cursed = script.Cursed:Clone()
  5.         Cursed.Parent = script.Parent.Parent.UpperTorso
  6.     end
  7. end)
  8.  
  9. local Del = true
  10.  
  11. script.Parent.Activated:Connect(function()
  12.     if Del == true then
  13.         Del = false
  14.         local Attack = math.random(1,2)
  15.         if Attack == 1 then
  16.             print("Lucky")
  17.            
  18.             wait(1)
  19.             script.Parent:Destroy()
  20.         elseif Attack == 2 then
  21.             print("Unlucky")
  22.            
  23.             script.Unlucky:Play()
  24.             script.Parent.Parent.UpperTorso.Cursed.Enabled = true
  25.             wait(5)
  26.             script.Parent.Parent.Humanoid.Health = 0
  27.         end
  28.     end
  29. end)
  30.  
Advertisement
Add Comment
Please, Sign In to add comment