Advertisement
Gomlsauresrex

Untitled

May 5th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. local p=game.Players.LocalPlayer
  2. local char=p.Character or p.CharacterAdded:wait()
  3. local hrp=char.HumanoidRootPart
  4. local hum=char:FindFirstChildOfClass("Humanoid")
  5. local colour,angle=nil,0
  6.  
  7. local part=Instance.new("Part",hrp)
  8. part.Position=hrp.Position
  9. part.CanCollide=false
  10. part.Size=Vector3.new(10, 10, 10)
  11. part.Anchored=true
  12. part.Transparency=.5
  13. colour=part.BrickColor.Color
  14.  
  15. p.Chatted:Connect(function(msg)
  16. if string.sub(msg,1,6) == ":size " then
  17. local num=tonumber(string.sub(msg, 7))
  18. if num <= 50 then
  19. spawn(function()
  20. for i=1,10 do
  21. part.Size=part.Size:Lerp(Vector3.new(num,num,num), i/10)
  22. wait(.2)
  23. end
  24. end)
  25. end
  26. end
  27. end)
  28.  
  29. spawn(function()
  30. while part and hum.Health > 0 do
  31. wait(.1)
  32. angle=angle+.1
  33. part.CFrame=hrp.CFrame*CFrame.Angles(0, math.rad(angle), 0)
  34. spawn(function()
  35. for i=1,10 do
  36. colour=colour:lerp(Color3.new(math.random(255)/255, math.random(255)/255, math.random(255)/255), i/10)
  37. part.BrickColor=BrickColor.new(colour)
  38. part.Touched:Connect(function(hit)
  39. if hit.Parent~=workspace[p.Name] and hit.Name~="Terrain" and hit.Name~="Baseplate" and hit.Name~="Base" then
  40. hit:Destroy()
  41. end
  42. end)
  43. wait(.1)
  44. end
  45. end)
  46. wait()
  47. end
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement