Pukaciu

ring

Oct 1st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. wait(1)
  2. chr = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait()
  3. dead = false
  4. model = Instance.new("Model")
  5. model.Parent = chr
  6. circle = Instance.new("Part",model)
  7. model.PrimaryPart = circle
  8. circle.Anchored = true
  9. circle.CanCollide = false
  10. circle.BrickColor = BrickColor.new(Color3.fromRGB(192, 57, 43)) --BRICKCOLOR ONLY GOES TO 1 R(ED)G(REEN)B(LUE)
  11. circle.Size = Vector3.new(.5,.5,.5) --SIZE ONLY CHANGE THE MIDDLE
  12. circle.Transparency = 1 --VISIBILITY OF INSIDE BLOCK
  13. circle.Material = Enum.Material.Neon
  14. rad = 7
  15. circ = 2*math.pi*rad
  16. n = circ/.5
  17. rot = 360/n
  18.  
  19. function gay()
  20. for i = 0,n/2 do
  21. game:GetService('RunService').RenderStepped:wait()
  22. local clone = circle:Clone()
  23. local function tran()
  24. clone.Parent = model
  25. for index = .5,7,.1 do
  26. game:GetService('RunService').RenderStepped:wait()
  27. -- clone.Size = Vector3.new(.5,index,.5)
  28. clone.Transparency = clone.Transparency - .05
  29. clone.CFrame = circle.CFrame*CFrame.Angles(0,0,math.rad(i*(rot*2)))*CFrame.new(rad/2.2,0,0)
  30. end
  31. end
  32. spawn(tran)
  33. end
  34. end
  35. spawn(gay)
  36.  
  37. chr.Humanoid.Died:connect(function()
  38. dead = true
  39. for i,v in pairs(model:GetChildren()) do
  40. local function lerp()
  41. local cframeval = v.CFrame
  42. for i = 0,1,.025 do
  43. game:GetService('RunService').RenderStepped:wait()
  44. v.Size = v.Size - Vector3.new(.025,.025,.025)
  45. v.CFrame = cframeval:lerp(chr.Torso.CFrame,i)
  46. v.Transparency = i*2
  47. end
  48. end
  49. spawn(lerp)
  50. end
  51. end)
  52.  
  53. x = 0
  54. y = 0
  55. z = 0
  56. random = 0
  57. debounce = false
  58.  
  59. colortable={BrickColor.new(Color3.fromRGB(0, 200, 50)),
  60. BrickColor.new(Color3.fromRGB(200, 100, 0)),
  61. BrickColor.new(Color3.fromRGB(50, 150, 200)),
  62. BrickColor.new(Color3.fromRGB(200, 50, 50)),
  63. BrickColor.new(Color3.fromRGB(200, 100, 200)),
  64. BrickColor.new(Color3.fromRGB(50, 200, 200)),
  65. BrickColor.new(Color3.fromRGB(50, 200, 100))}
  66. function changecolor()
  67. if debounce == false then
  68. debounce = true
  69. local children = model:GetChildren()
  70. random = random + 1
  71. if random == 8 then
  72. random = 1
  73. end
  74. for i,v in pairs(children) do
  75. game:GetService('RunService').RenderStepped:wait()
  76. v.BrickColor = colortable[random]
  77. end
  78. debounce = false
  79. end
  80. end
  81. while dead == false do
  82. game:GetService('RunService').RenderStepped:wait()
  83. if x > 360 then
  84. x = 0
  85. spawn(changecolor)
  86. elseif y > 360 then
  87. y = 0
  88. end
  89. x = x + 2
  90. y = y - 4
  91. model:SetPrimaryPartCFrame(chr.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(x),math.rad(y),math.rad(0)))
  92. end
Add Comment
Please, Sign In to add comment