Advertisement
yougotoof

no u

Dec 2nd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. local tweenService = game:GetService("TweenService")
  2. local part = Instance.new("Part", game.Workspace)
  3. part.Anchored = true
  4. part.CanCollide = false
  5. part.Locked = true
  6. local brick = part
  7.  
  8. function killbrick()
  9. local h = game.Workspace:findFirstChild("Humanoid")
  10. if h then h.Health = 0
  11. end
  12.  
  13. local boom = Instance.new("Explosion")
  14. boom.Parent = brick
  15. local sound = brick.Sound
  16. sound:Play()
  17.  
  18. end
  19.  
  20. brick.Touched:connect(killbrick)
  21.  
  22. local tweeningInformation = TweenInfo.new(
  23.  
  24. 120, -- Length
  25. Enum.EasingStyle.Linear, -- Easing style of the TweenInfo
  26. Enum.EasingDirection.Out, -- Easing direction of the TweenInfo
  27. 0, -- Number of times the tween will repeat
  28. false, -- Should the tween repeat?
  29. 30 -- Delay between each tween
  30. )
  31.  
  32. local partProperties = {
  33. Size = Vector3.new(999999,999999,9999999);
  34. Color = Color3.new(255, 0, 0);
  35. Transparency = 0
  36. }
  37.  
  38. local Tween = tweenService:Create(part,tweeningInformation,partProperties)
  39. Tween:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement