Advertisement
jellydude

ROBLOX Moonman script

Nov 23rd, 2018
1,417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. --Script made by Jellydude.
  2. iz = (game.Players.LocalPlayer.Name)
  3.  
  4. is = (game.Players.LocalPlayer.Character)
  5.  
  6.  
  7. for i,v in pairs(is:GetChildren()) do
  8. if v.ClassName == 'Accessory' then
  9. v:Destroy()
  10. end
  11. end
  12.  
  13. for i,v in pairs(is:GetChildren()) do
  14. if v.ClassName == 'Shirt' then
  15. v:Destroy()
  16. end
  17. end
  18.  
  19. for i,v in pairs(is:GetChildren()) do
  20. if v.ClassName == 'Pants' then
  21. v:Destroy()
  22. end
  23. end
  24.  
  25.  
  26. wait()
  27.  
  28. hat1 = Instance.new('Hat')
  29. hat1.Parent = game.Players[iz].Character
  30.  
  31. handle = Instance.new('Part')
  32. handle.Name = 'Handle'
  33. handle.Parent = hat1
  34.  
  35. handlemesh = Instance.new('SpecialMesh')
  36. handlemesh.MeshType = 'FileMesh'
  37. handlemesh.MeshId = 'http://www.roblox.com/asset/?id=23265118'
  38. handlemesh.TextureId = 'rbxassetid://252864626'
  39. handlemesh.Parent = handle
  40.  
  41. hat2 = Instance.new('Hat')
  42. hat2.Parent = game.Players[iz].Character
  43.  
  44. shirt = Instance.new('Shirt')
  45. shirt.Parent = is
  46. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=274490358'
  47.  
  48. shirt = Instance.new('Pants')
  49. shirt.Parent = is
  50. shirt.PantsTemplate = 'http://www.roblox.com/asset/?id=274490617'
  51.  
  52. sound = Instance.new('Sound')
  53. sound.SoundId = 'http://www.roblox.com/asset/?id=476296898'
  54. sound.Looped = true
  55. sound.Parent = is.Torso
  56.  
  57. local player = game.Players.LocalPlayer
  58. repeat wait() until player.Character.Humanoid
  59. local humanoid = player.Character.Humanoid
  60. local mouse = player:GetMouse()
  61.  
  62. local anim = Instance.new("Animation")
  63. anim.AnimationId = "http://www.roblox.com/Asset?ID=27789359"
  64.  
  65. mouse.KeyDown:connect(function(key)
  66. if key == "z" then
  67. local anim = Instance.new("Animation")
  68. anim.AnimationId = "http://www.roblox.com/Asset?ID=27789359"
  69. sound:Play()
  70. local playAnim = humanoid:LoadAnimation(anim)
  71. playAnim:Play()
  72. end
  73. end)
  74.  
  75. mouse.KeyDown:connect(function(key)
  76. if key == "x" then
  77. sound:Stop()
  78. local playAnim = humanoid:LoadAnimation(anim)
  79. anim.AnimationId = "http://www.roblox.com/Asset?ID=0"
  80. playAnim:Play()
  81. playAnim:Stop()
  82. print('Dance is stopped')
  83.  
  84. end
  85. end)
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. iz = (game.Players.LocalPlayer.Name)
  93.  
  94. is = (game.Players.LocalPlayer.Character)
  95.  
  96. is.Head.Transparency = 1
  97.  
  98. for i,v in pairs(is:GetChildren()) do
  99. if v.ClassName == 'Hat' then
  100. v:Destroy()
  101. end
  102. end
  103.  
  104. for i,v in pairs(is:GetChildren()) do
  105. if v.ClassName == 'Shirt' then
  106. v:Destroy()
  107. end
  108. end
  109.  
  110. for i,v in pairs(is:GetChildren()) do
  111. if v.ClassName == 'Pants' then
  112. v:Destroy()
  113. end
  114. end
  115.  
  116.  
  117. wait()
  118.  
  119. hat1 = Instance.new('Hat')
  120. hat1.Parent = game.Players[iz].Character
  121.  
  122. handle = Instance.new('Part')
  123. handle.Name = 'Handle'
  124. handle.Parent = hat1
  125.  
  126. handlemesh = Instance.new('SpecialMesh')
  127. handlemesh.MeshType = 'FileMesh'
  128. handlemesh.MeshId = 'http://www.roblox.com/asset/?id=23265118'
  129. handlemesh.TextureId = 'rbxassetid://252864626'
  130. handlemesh.Parent = handle
  131.  
  132. hat2 = Instance.new('Hat')
  133. hat2.Parent = game.Players[iz].Character
  134.  
  135. shirt = Instance.new('Shirt')
  136. shirt.Parent = is
  137. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=274490358'
  138.  
  139. shirt = Instance.new('Pants')
  140. shirt.Parent = is
  141. shirt.PantsTemplate = 'http://www.roblox.com/asset/?id=274490617'
  142.  
  143. sound = Instance.new('Sound')
  144. sound.SoundId = 'http://www.roblox.com/asset/?id=476296898'
  145. sound.Looped = true
  146. sound.Parent = is.Torso
  147.  
  148. local player = game.Players.LocalPlayer
  149. repeat wait() until player.Character.Humanoid
  150. local humanoid = player.Character.Humanoid
  151. local mouse = player:GetMouse()
  152.  
  153. local anim = Instance.new("Animation")
  154. anim.AnimationId = "http://www.roblox.com/Asset?ID=27789359"
  155.  
  156.  
  157. local msg = Instance.new("Hint")
  158. msg.Parent = game.Workspace
  159. msg.Text = "Click 'z' to get started."
  160. is.Humanoid.WalkSpeed = 0
  161.  
  162. mouse.KeyDown:connect(function(key)
  163. if key == "z" then
  164. sound:Play()
  165. msg:Destroy()
  166. is.Humanoid.WalkSpeed = 30
  167. is.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/Asset?ID=252557606'
  168. end
  169. end)
  170.  
  171. function onTouch(part)
  172. local humanoid = part.Parent:findFirstChild("Humanoid")
  173. sound1 = Instance.new('Sound')
  174. sound1.SoundId = 'http://www.roblox.com/asset/?id=160432334'
  175. sound1.Looped = false
  176. sound1.Parent = is.Torso
  177. sound1:Play()
  178.  
  179. sound2 = Instance.new('Sound')
  180. sound2.SoundId = 'http://www.roblox.com/asset/?id=170040190'
  181. sound2.Looped = false
  182. sound2.Parent = is.Torso
  183. sound2:Play()
  184. if (humanoid ~=nil) then
  185. humanoid.Health = 0
  186. end
  187. end
  188.  
  189. is.Torso.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement