Advertisement
ManlyMemeScripter

Goomba[WIP]

Mar 25th, 2018
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.  
  3. Created by Sharkringan kthx
  4.  
  5. --]]
  6.  
  7. wait(1/60)
  8.  
  9. plr = game:service'Players'.LocalPlayer
  10. char = plr.Character
  11. root = char:FindFirstChild'HumanoidRootPart'
  12. hum = char:FindFirstChildOfClass'Humanoid'
  13. mouse = plr:GetMouse()
  14. clones = {}
  15. followplr = true
  16. radius = 25
  17.  
  18. if char.Head:FindFirstChild'face' then
  19. char.Head.face:Destroy()
  20. end
  21.  
  22. for _, a in pairs(char:children()) do
  23. if a:IsA'Part' then
  24. a.Transparency = 1
  25. elseif a:IsA'Accessory' then
  26. a:Destroy()
  27. end
  28. end
  29.  
  30. eyes = Instance.new('Part', char)
  31. eyes.Anchored = true
  32. eyes.Name = "Eyes"
  33. eyes.Size = Vector3.new(0.22, 0.052, 0.105)
  34. eyesm = Instance.new('SpecialMesh', eyes)
  35. eyesm.Scale = Vector3.new(10.99, 10.99, 0.10)
  36. eyesm.MeshId = "rbxassetid://1032765290"
  37. eyesm.TextureId = "rbxassetid://1032765300"
  38.  
  39. eyes = Instance.new('Part', char)
  40. eyes.Anchored = false
  41. eyes.Name = "Eyes"
  42. eyes.Size = Vector3.new(0.22, 0.052, 0.105)
  43. eyesm = Instance.new('SpecialMesh', eyes)
  44. eyesm.Scale = Vector3.new(0.005, 0.005, 0.005)
  45. eyesm.MeshId = "rbxassetid://1546840102"
  46. eyesm.TextureId = "rbxassetid://1546840114"
  47.  
  48. body = Instance.new('Part', char)
  49. body.Anchored = false
  50. body.Name = "Body"
  51. body.Size = Vector3.new(0.60, 0.062, 0.60)
  52. bodym = Instance.new('SpecialMesh', body)
  53. bodym.Scale = Vector3.new(0.46, 0.46, 0.46)
  54. bodym.MeshId = "rbxassetid://1546840102"
  55. bodym.TextureId = "rbxassetid://1546840114"
  56.  
  57. weld1 = Instance.new('Weld', eyes)
  58. weld1.Part0 = eyes
  59. weld1.Part1 = root
  60. weld1.C0 = CFrame.new(0,1.55,.2)
  61. weld2 = Instance.new('Weld', body)
  62. weld2.Part0 = body
  63. weld2.Part1 = root
  64. weld2.C0 = CFrame.new(0,1.1,0)
  65. local music=Instance.new("Sound",char.Torso)
  66. music.SoundId="rbxassetid://0"
  67. music.Volume = 2.5
  68. music.Looped=true
  69. music:Play()
  70. TheWay1 = Instance.new('Sound', body)
  71. TheWay1.SoundId = "rbxassetid://0"
  72. TheWay1.Volume = 3
  73. TheWay1.Name = "TheWay1"
  74. TheWay2 = Instance.new('Sound', body)
  75. TheWay2.SoundId = "rbxassetid://0"
  76. TheWay2.Volume = 3
  77. TheWay2.Name = "TheWay2"
  78. Spit = Instance.new('Sound', body)
  79. Spit.SoundId = "rbxassetid://1303652161"
  80. Spit.Volume = 3
  81. Spit.Name = "Spit"
  82. Click = Instance.new('Sound', body)
  83. Click.SoundId = "rbxassetid://132742415"
  84. Click.Volume = 3
  85.  
  86. -- Objects
  87.  
  88. local ScreenGui = Instance.new("ScreenGui")
  89. local TextButton = Instance.new("TextButton")
  90.  
  91. -- Properties
  92.  
  93. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  94.  
  95. TextButton.Parent = ScreenGui
  96. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  97. TextButton.Size = UDim2.new(0, 200, 0, 50)
  98. TextButton.Font = Enum.Font.SourceSans
  99. TextButton.FontSize = Enum.FontSize.Size14
  100. TextButton.Text = "goomba?"
  101. TextButton.TextSize = 14
  102.  
  103. --[[Function/s being made!]]
  104. function PlayMusic(ID)
  105. for i, v in pairs (game.Workspace:GetChildren()) do
  106. if v:IsA("Sound") then
  107. end
  108. end
  109. local music = Instance.new("Sound")
  110. local asset = "rbxassetid://"
  111. music.SoundId = asset .. ID
  112. music.Parent = workspace
  113. music.Volume = 999
  114. music.Looped = false
  115. music:Play()
  116. end
  117. --[[Connecting functions!]]
  118. TextButton.MouseButton1Down:connect(function()
  119. PlayMusic(306587162)
  120. end)
  121.  
  122. -- Objects
  123.  
  124. local ScreenGui = Instance.new("ScreenGui")
  125. local TextButton = Instance.new("TextButton")
  126.  
  127. -- Properties
  128.  
  129. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  130.  
  131. TextButton.Parent = ScreenGui
  132. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  133. TextButton.Size = UDim2.new(0, 150, 0, 50)
  134. TextButton.Font = Enum.Font.SourceSans
  135. TextButton.FontSize = Enum.FontSize.Size14
  136. TextButton.Text = "sugar Plums!"
  137. TextButton.TextSize = 14
  138.  
  139. --[[Function/s being made!]]
  140. function PlayMusic(ID)
  141. for i, v in pairs (game.Workspace:GetChildren()) do
  142. if v:IsA("Sound") then
  143. end
  144. end
  145. local music = Instance.new("Sound")
  146. local asset = "rbxassetid://"
  147. music.SoundId = asset .. ID
  148. music.Parent = workspace
  149. music.Volume = 999
  150. music.Looped = false
  151. music:Play()
  152. end
  153. --[[Connecting functions!]]
  154. TextButton.MouseButton1Down:connect(function()
  155. PlayMusic(957496845)
  156. end)
  157.  
  158. --This is a localscript; you will need to have access to using scripts wherever you want this
  159. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
  160.  
  161. print("Finding Goomba... (This may take a year!)")
  162. wait (1)
  163. print("Found Goomber. Now giving the headbutt.")
  164. local user = game.Players.LocalPlayer.Backpack
  165. local sword = Instance.new("Tool",user)
  166. print("Gave the player the sword. Enjoy!")
  167. local handle = Instance.new("Part",sword)
  168. local mesh = Instance.new("SpecialMesh",handle)
  169. local DAMAGE = 15
  170. local sound = Instance.new("Sound",handle)
  171. local sound2 = Instance.new("Sound",handle)
  172. sword.Name = "Sword"
  173. script.Parent = sword
  174. script.Name = "SwordScript"
  175. --local animation = Instance.new("Animation",script)
  176.  
  177. --animation.AnimationId = "http://www.roblox.com/Asset?ID=992817684"
  178.  
  179. sound.SoundId = "rbxasset://sounds//swordlunge.wav"
  180. sound.Volume = 3
  181. sound.PlaybackSpeed = 1.17
  182. sound.Name = "Slash"
  183. sound2.SoundId = "rbxasset://sounds//unsheath.wav"
  184. sound2.Volume = 3
  185. sound2.PlaybackSpeed = 0.8
  186. sound2.Volume = 3
  187. sound2.Name = "Unsheath"
  188.  
  189. function unsheathanimation()
  190. sword.GripPos = sword.GripPos + Vector3.new(0,5,0)
  191. for i = 1,5 do
  192. sword.GripPos = sword.GripPos + Vector3.new(0,-1,0)
  193. wait (0.1)
  194. end
  195. end
  196.  
  197. function unsheathsound()
  198. sound2:Play()
  199. end
  200.  
  201. function damage(hit)
  202.  
  203. local h = hit.Parent:FindFirstChild("Humanoid")
  204. if (h ~= nil) then
  205. h:TakeDamage(DAMAGE / 4)
  206. end
  207. end
  208.  
  209. function animate()
  210. --4
  211. sound:Play()
  212. for i = 1,5 do
  213. sword.GripUp = sword.GripUp + Vector3.new(0,0,1)
  214. wait (0)
  215. end
  216. sword.GripUp = sword.GripUp + Vector3.new(0,0,-1)
  217. end
  218. handle.Size = handle.Size + Vector3.new(-4,-1,-2)
  219. handle.Size = handle.Size + Vector3.new(0.20, 3.20, 0.20)
  220. handle.Name = "Handle"
  221.  
  222. mesh.MeshType = "FileMesh"
  223. mesh.MeshId = "http://www.roblox.com/asset/?id=0"
  224. mesh.TextureId = "http://www.roblox.com/asset/?ID=0"
  225. mesh.Offset = mesh.Offset + Vector3.new(1,1,1)
  226.  
  227. sword.Equipped:connect(unsheathanimation)
  228. sword.Equipped:connect(unsheathsound)
  229. wait(sound2.TimeLength)
  230. sword.Activated:connect(animate)
  231. handle.Touched:connect(damage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement