kingkoolie

Untitled

Nov 21st, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. --Variables--
  2. local p = game.Players.LocalPlayer
  3. local c = p.Character
  4. local m = p:GetMouse()
  5. local tor = c:WaitForChild("Torso")
  6. local h = c:WaitForChild("Head")
  7. local rl = c:WaitForChild("Right Leg")
  8. local ll = c:WaitForChild("Left Leg")
  9. local ra = c:WaitForChild("Right Arm")
  10. local rl = c:WaitForChild("Left Leg")
  11. local hum = c:WaitForChild("Humanoid")
  12. local gui = p.PlayerGui
  13. --end--
  14. --Coroutines--
  15.  
  16. --end--
  17.  
  18. p.Chatted:connect(function(msg)
  19. if msg:sub(1,33) == "free me... from the pits of hell." or msg:sub(1,2) == "dr" then
  20. print'Activated'
  21. coroutine.resume(coroutine.create(function()
  22. local pd = 150
  23. while pd > 10 do
  24. pd = pd - 1
  25. local ring = Instance.new("Part", c.Torso)
  26. ring.Anchored = true
  27. ring.CanCollide = false
  28. ring.BrickColor = BrickColor.new("Really blue")
  29. ring.FormFactor = "Custom"
  30. ring.Size = Vector3.new(0.1,0.1,0.1)
  31. ring.Transparency = 0.3
  32. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  33. local rmesh = Instance.new("SpecialMesh", ring)
  34. rmesh.MeshId = "rbxassetid://437085648"
  35. rmesh.Scale = Vector3.new(0,0,0)
  36. game.Debris:AddItem(ring,2)
  37. coroutine.resume(coroutine.create(function(c)
  38. for i=1,10 do
  39. c.Transparency = i/10
  40. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
  41. wait(0.1)
  42. end
  43. c.Parent = nil
  44. end),ring)
  45. wait()
  46. end
  47. end))
  48. coroutine.resume(coroutine.create(function()
  49. local pd = 300
  50. while pd > 10 do
  51. pd = pd - 1
  52. local ring = Instance.new("Part", c.Torso)
  53. ring.Anchored = true
  54. ring.CanCollide = false
  55. ring.Material = "Neon"
  56. ring.BrickColor = BrickColor.new("Toothpaste")
  57. ring.FormFactor = "Custom"
  58. ring.Size = Vector3.new(6,6,6)
  59. ring.Transparency = 0.3
  60. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  61. local rmesh = Instance.new("BlockMesh", ring)
  62. game.Debris:AddItem(ring,2)
  63. coroutine.resume(coroutine.create(function(c)
  64. for i=1,10 do
  65. c.Transparency = i/10
  66. c.Mesh.Scale = c.Mesh.Scale - Vector3.new(.4,.4,.4)
  67. c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
  68. wait(0.1)
  69. end
  70. c.Parent = nil
  71. end),ring)
  72. wait()
  73. end
  74. end))
  75. wait(6)
  76. coroutine.resume(coroutine.create(function()
  77. local pd = 150
  78. while pd > 10 do
  79. pd = pd - 1
  80. local ring = Instance.new("Part", c.Torso)
  81. ring.Anchored = true
  82. ring.CanCollide = false
  83. ok = math.random(1,2)
  84. if ok == 1 then
  85. ring.BrickColor = BrickColor.new("Toothpaste")
  86. else
  87. ring.BrickColor = BrickColor.new("Really blue")
  88. end
  89. ring.FormFactor = "Custom"
  90. ring.Size = Vector3.new(0.1,0.1,0.1)
  91. ring.Transparency = 0.3
  92. ring.CFrame = c.Torso.CFrame*CFrame.new(0,10,10)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(180))
  93. local rmesh = Instance.new("SpecialMesh", ring)
  94. rmesh.MeshId = "rbxassetid://430083238"
  95. rmesh.Scale = Vector3.new(.5414, .8022, .68596)
  96. game.Debris:AddItem(ring,2)
  97. coroutine.resume(coroutine.create(function(c)
  98. for i=1,10 do
  99. c.Transparency = i/10
  100. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.01,.01,.01)
  101. wait(0.1)
  102. end
  103. c.Parent = nil
  104. end),ring)
  105. wait()
  106. end
  107. end))
  108. for u, c in pairs (c:GetChildren()) do
  109. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  110. c.Handle.Transparency = 1
  111. end
  112. end
  113. local up = Vector3.new(0, 1, 0)
  114. local forward = Vector3.new( 0, 0, -1)
  115. local pos = Vector3.new( 0, 0.47, 0.07)
  116. local right = Vector3.new( 1, 0, 0)
  117. h = Instance.new("Hat")
  118. p = Instance.new("Part")
  119. h.Name = script.Parent.Name
  120. p.Parent = h
  121. p.Position = c:findFirstChild("Head").Position
  122. p.Name = "Handle"
  123. p.formFactor = 0
  124. p.Size = Vector3.new(1,2,2)
  125. p.BottomSurface = 0
  126. p.TopSurface = 0
  127. p.Locked = true
  128. local pm = Instance.new("SpecialMesh",p)
  129. pm.MeshId = "http://www.roblox.com/asset/?id=420164161"
  130. pm.TextureId = "http://www.roblox.com/asset/?id=420164265"
  131. h.Parent = c
  132. h.AttachmentForward = forward
  133. h.AttachmentPos = pos
  134. h.AttachmentRight = right
  135. h.AttachmentUp = up
  136. end
  137.  
  138. end)
Advertisement
Add Comment
Please, Sign In to add comment