Advertisement
ericdesouza

THE BAN MARIO

Jan 20th, 2018
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.92 KB | None | 0 0
  1. --Script made by Pedrorb03. Enjoy it ;)
  2.  
  3. --Set Up
  4.  
  5. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
  6. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  7.  
  8.  
  9.  
  10.  
  11. for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  12. anim:Stop()
  13. end
  14. part:remove()
  15. end
  16. end
  17. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  18. if part:IsA("BasePart") then
  19. part.BrickColor = BrickColor.new("Pastel brown")
  20. end
  21. end
  22. game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(0.45,0.45,0.45)
  23. game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,0.3,-0.1)
  24. game.Players.LocalPlayer.Character.Head.face:remove()
  25.  
  26. game.Players.LocalPlayer.Character.Head.Jumping.SoundId = "rbxassetid://158309736"
  27. sound = nil
  28.  
  29. while sound == nil do
  30. wait()
  31. sound = Instance.new("Sound")
  32. if sound ~= nil then
  33. break
  34. end
  35. end
  36.  
  37. levelMusic = sound:Clone()
  38. levelMusic.SoundId = "rbxassetid://853707984"
  39. levelMusic.Looped = true
  40. levelMusic.Parent = game.Players.LocalPlayer.Character
  41. levelMusic.Volume = 0.3
  42. levelMusic:Play()
  43. takeCooldown = false
  44.  
  45. lifes = 2
  46.  
  47. lastLife = lifes
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 65
  59. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
  60. --Map Set Up
  61. if not game.Workspace:FindFirstChild("Baseplate") then
  62. baseplate = Instance.new("Part") baseplate.Anchored = true baseplate.CFrame = CFrame.new(0,-10,0) baseplate.Name = "Baseplate" baseplate.Locked = true baseplate.Parent = game.Workspace
  63. end
  64. if game.Workspace:FindFirstChild("Baseplate") then
  65. game.Workspace.Baseplate.Size = Vector3.new(2048,20,2048)
  66. GroundTexture = Instance.new("Texture",game.Workspace.Baseplate) GroundTexture.Texture = "rbxassetid://1089643294" GroundTexture.StudsPerTileU = 3 GroundTexture.StudsPerTileV = 3
  67. GroundTexture.Face = "Top"
  68. game.Workspace.Baseplate.CFrame = CFrame.new(0,-9.5,0)
  69. end
  70.  
  71. sky = Instance.new("Sky",game.Lighting)
  72. sky.SkyboxBk = "rbxassetid://1089701835"
  73. sky.SkyboxFt = "rbxassetid://1089701835"
  74. sky.SkyboxLf = "rbxassetid://1089701835"
  75. sky.SkyboxRt = "rbxassetid://1089701835"
  76. sky.SkyboxUp = "rbxassetid://1089702222"
  77. sky.SkyboxDn = "rbxassetid://1089702222"
  78.  
  79. sky.SunTextureId = "rbxassetid://1089711654"
  80. sky.MoonTextureId = "rbxassetid://1089711897"
  81.  
  82. sky.SunAngularSize = 50
  83. sky.MoonAngularSize = 50
  84.  
  85. sky.StarCount = 0
  86.  
  87. color = Instance.new("ColorCorrectionEffect",game.Lighting) color.Saturation = 1 color.Contrast = 1
  88.  
  89.  
  90. brick = Instance.new("Part") brick.Anchored = true brick.Size = Vector3.new(3.2,3.2,3.2)
  91. mesh = Instance.new("SpecialMesh",brick) mesh.MeshId = "rbxassetid://1089547491" mesh.TextureId = "rbxassetid://1089552092"
  92. bricks = {}
  93. for _=1,math.random(200,350) do
  94. local part = brick:Clone()
  95. part.CFrame = CFrame.new(math.random(-102400,102400)/100,11,math.random(-102400,102400)/100)
  96. part.Parent = game.Workspace
  97. table.insert(bricks,part)
  98. end
  99.  
  100.  
  101. block = Instance.new("Part") block.Anchored = true block.Size = Vector3.new(3,3,3)
  102. mesh = Instance.new("SpecialMesh",block) mesh.MeshId = "rbxassetid://1089565562" mesh.TextureId = "rbxassetid://1089562101"
  103. blocks = {}
  104. for _=1,math.random(100,150) do
  105. local part = block:Clone()
  106. part.CFrame = CFrame.new(math.random(-102400,102400)/100,11,math.random(-102400,102400)/100)
  107. part.Parent = game.Workspace
  108. table.insert(blocks,part)
  109. end
  110.  
  111.  
  112. coin = Instance.new("Part") coin.Anchored = true coin.Size = Vector3.new(2,2,2) coin.CanCollide = false
  113. mesh = Instance.new("SpecialMesh",coin) mesh.MeshId = "rbxassetid://652133659" mesh.Scale = Vector3.new(0.005, 0.005, 0.005)
  114. coin.Color = Color3.fromRGB(255,245,0)
  115. coins = {}
  116. for _=1,math.random(300,350) do
  117. local part = coin:Clone()
  118. part.CFrame = CFrame.new(math.random(-102400,102400)/100,2,math.random(-102400,102400)/100)
  119. part.Parent = game.Workspace
  120. table.insert(coins,part)
  121. end
  122.  
  123. gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  124.  
  125. coinGui = Instance.new("TextLabel",gui) coinGui.BackgroundTransparency = 1 coinGui.TextScaled = true coinGui.Font = Enum.Font.Arcade coinGui.TextColor3 = Color3.fromRGB(255,255,255)
  126. coinGui.Size = UDim2.new(0.15,0,0.075,0)
  127.  
  128. mushroom = Instance.new("Part") mushroom.Anchored = false mushroom.Size = Vector3.new(2.5,2.5,2.5)
  129. mesh = Instance.new("SpecialMesh",mushroom) mesh.MeshId = "rbxassetid://843546054" mesh.TextureId = "rbxassetid://843546065" mesh.Scale = Vector3.new(0.05, 0.05, 0.05)
  130. mushrooms = {}
  131.  
  132. flower = Instance.new("Part") flower.Anchored = true flower.Size = Vector3.new(2.5,2.5,2.5)
  133. mesh = Instance.new("SpecialMesh",flower) mesh.MeshId = "rbxassetid://1091549739" mesh.TextureId = "rbxassetid://1091549771" mesh.Scale = Vector3.new(0.15, 0.15, 0.15)
  134. flowers = {}
  135.  
  136. star = Instance.new("Part") star.Anchored = false star.Size = Vector3.new(2.5,2.5,2.5) star.CanCollide = false
  137. mesh = Instance.new("SpecialMesh",star) mesh.MeshId = "rbxassetid://491129029" mesh.TextureId = "rbxassetid://1092055458" mesh.Scale = Vector3.new(0.075, 0.075, 0.075)
  138. stars = {}
  139.  
  140. fire = Instance.new("Part") fire.Anchored = false flower.Size = Vector3.new(1.5,1.5,1.5) fire.Transparency = 1
  141. meshhh = Instance.new("BillboardGui",fire) meshhh.LightInfluence = 0 meshhh.Size = UDim2.new(1.5,0,1.5,0)
  142. imagee = Instance.new("ImageLabel",meshhh) imagee.BackgroundTransparency = 1 imagee.Size = UDim2.new(1,0,1,0) imagee.Image = "rbxassetid://1091847477"
  143.  
  144. fires = {}
  145.  
  146.  
  147.  
  148.  
  149.  
  150. CoinsVal = 0
  151.  
  152.  
  153. --Animation Functions
  154.  
  155. walking = false
  156. stopped = true
  157.  
  158. jumping = false
  159. function walk()
  160. if lifes > 1 then
  161. walking = true
  162. for i=1,1 do
  163. wait(0.1)
  164.  
  165. if stopped == false and jumping == false then
  166. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  167. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  168. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  169. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  170.  
  171. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
  172. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  173. else
  174. break
  175. end
  176.  
  177. wait(0.1)
  178. if stopped == false and jumping == false then
  179. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  180. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  181.  
  182. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  183. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  184.  
  185. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  186. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
  187. else
  188. break
  189. end
  190. end
  191. walking = false
  192. else
  193. walking = true
  194. for i=1,1 do
  195. wait(0.1)
  196.  
  197. if stopped == false and jumping == false then
  198. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  199. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  200. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  201. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  202.  
  203. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,-0.1,0.25)*CFrame.Angles(0,math.rad(90),math.rad(30))
  204. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,-0.1,-0.25)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  205. else
  206. break
  207. end
  208.  
  209. wait(0.1)
  210. if stopped == false and jumping == false then
  211. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  212. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  213.  
  214. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  215. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  216.  
  217. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,-0.1,-0.25)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  218. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,-0.1,0.25)*CFrame.Angles(0,math.rad(90),math.rad(30))
  219. else
  220. break
  221. end
  222. end
  223. walking = false
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231. end
  232.  
  233.  
  234. end
  235.  
  236. function walkStop()
  237. if lifes > 1 then
  238. for i=1,1 do
  239. if jumping == false and stopped == true and walking == false then
  240. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-90))
  241. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,1,-0.5)*CFrame.Angles(math.rad(90),0,math.rad(-30))
  242.  
  243. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  244. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  245.  
  246. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
  247. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
  248. else
  249. break
  250. end
  251. wait(0.25)
  252. if jumping == false and stopped == true and walking == false then
  253.  
  254. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  255. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  256.  
  257. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  258. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  259.  
  260. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  261. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  262. else
  263. break
  264. end
  265. end
  266. else
  267.  
  268. for i=1,1 do
  269.  
  270.  
  271. if jumping == false and stopped == true and walking == false then
  272.  
  273. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-0.4,0.25,-0.75)*CFrame.Angles(0,0,math.rad(-90))
  274. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.5,0.75,-0.1)*CFrame.Angles(math.rad(90),0,math.rad(-30))
  275.  
  276. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  277. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0.5,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  278.  
  279. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
  280. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287. else
  288. break
  289. end
  290. wait(0.25)
  291. if jumping == false and stopped == true and walking == false then
  292.  
  293.  
  294. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  295. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  296.  
  297. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  298. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  299.  
  300. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  301. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  302. else
  303. break
  304. end
  305.  
  306. end
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320. end
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343. end
  344.  
  345. function jump()
  346. if lifes > 1 then
  347. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  348. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
  349.  
  350. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  351. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  352.  
  353. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  354. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  355. else
  356. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  357. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
  358.  
  359. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  360. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0.5,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  361.  
  362. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  363. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  364. end
  365. end
  366.  
  367. function land()
  368. if lifes > 1 then
  369. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  370. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  371.  
  372. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  373. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  374.  
  375. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  376. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  377. else
  378. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  379. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  380.  
  381. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  382. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  383.  
  384. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  385. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  386. end
  387. end
  388.  
  389. growing = false
  390.  
  391.  
  392. function degrow()
  393.  
  394. for i=1,5 do
  395. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  396. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  397. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  398. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  399. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  400. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  401.  
  402. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  403. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  404. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  405. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  406. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  407. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  408.  
  409. rs.Parent = game.Players.LocalPlayer.Character.Torso
  410. ls.Parent = game.Players.LocalPlayer.Character.Torso
  411. rh.Parent = game.Players.LocalPlayer.Character.Torso
  412. lh.Parent = game.Players.LocalPlayer.Character.Torso
  413. n.Parent = game.Players.LocalPlayer.Character.Torso
  414. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  415. wait(.1)
  416. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  417. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  418. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  419. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  420. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  421. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  422.  
  423. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  424. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  425. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  426. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  427. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  428. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  429.  
  430. rs.Parent = game.Players.LocalPlayer.Character.Torso
  431. ls.Parent = game.Players.LocalPlayer.Character.Torso
  432. rh.Parent = game.Players.LocalPlayer.Character.Torso
  433. lh.Parent = game.Players.LocalPlayer.Character.Torso
  434. n.Parent = game.Players.LocalPlayer.Character.Torso
  435. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  436. wait(.1)
  437. end
  438. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  439. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  440. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  441. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  442. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  443. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  444.  
  445. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  446. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  447. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  448. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  449. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  450. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  451.  
  452. rs.Parent = game.Players.LocalPlayer.Character.Torso
  453. ls.Parent = game.Players.LocalPlayer.Character.Torso
  454. rh.Parent = game.Players.LocalPlayer.Character.Torso
  455. lh.Parent = game.Players.LocalPlayer.Character.Torso
  456. n.Parent = game.Players.LocalPlayer.Character.Torso
  457. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  458.  
  459. end
  460. function grow()
  461.  
  462. for i=1,5 do
  463.  
  464. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  465. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  466. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  467. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  468. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  469. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  470.  
  471. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  472. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  473. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  474. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  475. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  476. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  477.  
  478. rs.Parent = game.Players.LocalPlayer.Character.Torso
  479. ls.Parent = game.Players.LocalPlayer.Character.Torso
  480. rh.Parent = game.Players.LocalPlayer.Character.Torso
  481. lh.Parent = game.Players.LocalPlayer.Character.Torso
  482. n.Parent = game.Players.LocalPlayer.Character.Torso
  483. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  484. wait(.1)
  485. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  486. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  487. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  488. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  489. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  490. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  491.  
  492. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  493. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  494. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  495. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  496. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  497. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  498.  
  499. rs.Parent = game.Players.LocalPlayer.Character.Torso
  500. ls.Parent = game.Players.LocalPlayer.Character.Torso
  501. rh.Parent = game.Players.LocalPlayer.Character.Torso
  502. lh.Parent = game.Players.LocalPlayer.Character.Torso
  503. n.Parent = game.Players.LocalPlayer.Character.Torso
  504. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  505. wait(.1)
  506. end
  507.  
  508. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  509. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  510. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  511. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  512. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  513. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  514.  
  515. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  516. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  517. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  518. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  519. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  520. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  521.  
  522. rs.Parent = game.Players.LocalPlayer.Character.Torso
  523. ls.Parent = game.Players.LocalPlayer.Character.Torso
  524. rh.Parent = game.Players.LocalPlayer.Character.Torso
  525. lh.Parent = game.Players.LocalPlayer.Character.Torso
  526. n.Parent = game.Players.LocalPlayer.Character.Torso
  527.  
  528. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  529.  
  530. end
  531.  
  532. function firegrow()
  533.  
  534.  
  535. for i=1,5 do
  536. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  537. wait(.1)
  538. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  539. wait(.1)
  540. end
  541. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  542.  
  543. end
  544. function defiregrow()
  545.  
  546.  
  547. for i=1,5 do
  548.  
  549. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  550. wait(.1)
  551.  
  552. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  553.  
  554. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  555. wait(.1)
  556. end
  557.  
  558. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  559.  
  560. end
  561.  
  562. function fireThrow()
  563.  
  564.  
  565. local soundos = sound:Clone()
  566. soundos.SoundId = "rbxassetid://147722910"
  567. soundos.Parent = game.Players.LocalPlayer.Character.Torso
  568. soundos:Play()
  569. game:GetService("Debris"):AddItem(soundos,2)
  570. local fie = fire:Clone()
  571. fie.CanCollide = false
  572. fie.CFrame = CFrame.new(game.Players.LocalPlayer.Character["Right Arm"].Position,game.Players.LocalPlayer.Character["Right Arm"].Position+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*3)
  573. fie.Parent = game.Workspace
  574. table.insert(fires,fie)
  575. fie.Velocity = fie.CFrame.lookVector*30
  576. game:GetService("Debris"):AddItem(fie,3)
  577. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(90))
  578. wait(.1)
  579. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  580.  
  581.  
  582.  
  583.  
  584. end
  585.  
  586.  
  587. --Main
  588. game.Players.LocalPlayer.Character["Right Leg"].Touched:connect(function(hit)
  589. if hit.Parent then
  590. if hit.Parent ~= game.Players.LocalPlayer.Character then
  591.  
  592. if hit.Parent:FindFirstChild("Humanoid") then
  593. if hit.Parent.Humanoid.Health > 0 then
  594. hit.Parent.Humanoid.Health = 0
  595. hit.CanCollide = true
  596. hit.Size = Vector3.new(hit.Size.X,0.05,hit.Size.Z)
  597. game.Players.LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  598. local sond = sound:Clone()
  599. sond.SoundId = "rbxassetid://135925117"
  600. sond.Parent = game.Players.LocalPlayer.Character.Torso
  601. sond:Play()
  602. game:GetService("Debris"):AddItem(sond,2)
  603. end
  604. end
  605. end
  606. end
  607. end)
  608. game.Players.LocalPlayer.Character.Head.Touched:connect(function(part)
  609. local did = false
  610. local num = 0
  611. for number,part2 in pairs(bricks) do
  612. if part2 == part then
  613. did = true
  614. num = number
  615. end
  616. end
  617. if did == true then
  618.  
  619. part:remove()
  620.  
  621. local coinSound = sound:Clone()
  622. coinSound.SoundId = "rbxassetid://317619936"
  623. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  624. coinSound:Play()
  625. game:GetService("Debris"):AddItem(coinSound,3)
  626. table.remove(bricks,num)
  627.  
  628. end
  629.  
  630. local did = false
  631. local num = 0
  632. for number,part2 in pairs(blocks) do
  633. if part2 == part then
  634. did = true
  635. num = number
  636. end
  637. end
  638. if did == true then
  639.  
  640. part.Mesh.MeshId = "rbxassetid://1089569418"
  641. part.Mesh.TextureId = "rbxassetid://1089568636"
  642.  
  643. local coinSound = sound:Clone()
  644. coinSound.SoundId = "rbxassetid://317619936"
  645. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  646. coinSound:Play()
  647. game:GetService("Debris"):AddItem(coinSound,3)
  648. table.remove(blocks,num)
  649. local get = math.random(1,2)
  650. if get == 1 then
  651. local coinHolo = coin:Clone()
  652. coinHolo.Parent = part
  653. coinHolo.CFrame = part.CFrame
  654. CoinsVal = CoinsVal+1000000
  655. local coinSound = sound:Clone()
  656. coinSound.SoundId = "rbxassetid://138702491"
  657. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  658. coinSound:Play()
  659. game:GetService("Debris"):AddItem(coinSound,3)
  660.  
  661. for i=1,10 do
  662. wait()
  663. coinHolo.CFrame = coinHolo.CFrame+Vector3.new(0,0.25,0)
  664. end
  665. wait(1)
  666. coinHolo:remove()
  667. end
  668. if get == 2 then
  669. local chance = math.random(1,3)
  670.  
  671. if chance > 1 then
  672. if lifes > 1 then
  673. local flow = flower:Clone()
  674. flow.Parent = game.Workspace
  675. flow.CFrame = part.CFrame
  676. table.insert(flowers,flow)
  677. for i=1,10 do
  678. wait()
  679. flow.CFrame = flow.CFrame+Vector3.new(0,0.25,0)
  680. end
  681.  
  682. end
  683. if lifes == 1 then
  684. local mush = mushroom:Clone()
  685. mush.CFrame = part.CFrame+Vector3.new(0,2,0)
  686. mush.Parent = game.Workspace
  687.  
  688. table.insert(mushrooms,mush)
  689. end
  690. end
  691. if chance == 1 then
  692. local sta = star:Clone()
  693. sta.CFrame = part.CFrame+Vector3.new(0,2,0)
  694. sta.Parent = game.Workspace
  695.  
  696. table.insert(stars,sta)
  697. end
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705. end
  706. end
  707.  
  708.  
  709. end)
  710. starA = false
  711. cooldown = false
  712. colorz = 0
  713. starTimer = 0
  714. game:GetService("UserInputService").InputBegan:connect(function(key)
  715. if key.KeyCode == Enum.KeyCode.C then
  716. if color then
  717. color.Enabled = not color.Enabled
  718. end
  719. end
  720. if key.KeyCode == Enum.KeyCode.Z then
  721. if lifes > 1 then
  722. local flow = flower:Clone()
  723. flow.Parent = game.Workspace
  724. flow.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  725. table.insert(flowers,flow)
  726.  
  727. end
  728. if lifes == 1 then
  729. local mush = mushroom:Clone()
  730. mush.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  731. mush.Parent = game.Workspace
  732.  
  733. table.insert(mushrooms,mush)
  734. end
  735. end
  736. if key.KeyCode == Enum.KeyCode.X then
  737.  
  738.  
  739. local sta = star:Clone()
  740. sta.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  741. sta.Parent = game.Workspace
  742.  
  743. table.insert(stars,sta)
  744.  
  745. end
  746.  
  747. if key.KeyCode == Enum.KeyCode.E then
  748. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  749. if lifes == 3 then
  750. if cooldown == false then
  751. cooldown = true
  752. fireThrow()
  753. cooldown = false
  754. end
  755. end
  756.  
  757.  
  758. end
  759. end)
  760. game:GetService("UserInputService").InputEnded:connect(function(key)
  761. if key.KeyCode == Enum.KeyCode.E then
  762. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  763. end
  764. end)
  765. game:GetService("RunService").RenderStepped:connect(function()
  766.  
  767. starTimer = starTimer+1
  768. if starTimer > 1 then
  769. starTimer = 0
  770. colorz = colorz+0.1
  771. if colorz > 5 then
  772. colorz = 0
  773. end
  774. if starA == true then
  775. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  776. if part:IsA("BasePart") then
  777. if part.Name == "HumanoidRootPart" then
  778. for _,child in pairs(game.Workspace:GetChildren()) do
  779. if child ~= game.Players.LocalPlayer.Character then
  780. if child:FindFirstChild("Humanoid") then
  781. for _,parto in pairs(child:GetChildren()) do
  782. if parto:IsA("BasePart") then
  783. if (parto.Position-part.Position).magnitude <= 5 then
  784. parto:remove()
  785. end
  786. end
  787. end
  788. end
  789. end
  790. end
  791. end
  792.  
  793.  
  794. local clon = part:Clone()
  795. for _,child in pairs(clon:GetChildren()) do
  796. if child.ClassName ~= "SpecialMesh" then
  797. child:remove()
  798. else
  799. child.TextureId = ""
  800. end
  801. end
  802. clon.Anchored = true
  803. if colorz == 0 then
  804. clon.Color = Color3.fromRGB(255,0,0)
  805. end
  806. if colorz == 1 then
  807. clon.Color = Color3.fromRGB(255,255,0)
  808. end
  809. if colorz == 2 then
  810. clon.Color = Color3.fromRGB(0,255,0)
  811. end
  812. if colorz == 3 then
  813. clon.Color = Color3.fromRGB(0,255,255)
  814. end
  815. if colorz == 4 then
  816. clon.Color = Color3.fromRGB(0,0,255)
  817. end
  818. if colorz == 5 then
  819. clon.Color = Color3.fromRGB(255,0,255)
  820. end
  821. game:GetService("Debris"):AddItem(clon,0.5)
  822. clon.Transparency = 0
  823. clon.Anchored = true
  824. clon.CanCollide = false
  825. clon.Material = Enum.Material.SmoothPlastic
  826. clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  827. clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  828. clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  829. clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  830. clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  831. clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  832.  
  833.  
  834.  
  835.  
  836. clon.Parent = game.Workspace
  837. end
  838.  
  839.  
  840. end
  841.  
  842.  
  843.  
  844.  
  845.  
  846. end
  847. end
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856. coinGui.Text = "Total Score: "..CoinsVal
  857. for number,part in pairs(fires) do
  858. if part == nil or not part:FindFirstChild("BillboardGui") then
  859. part:remove()
  860. table.remove(fires,number)
  861. break
  862. end
  863.  
  864. part.BillboardGui.ImageLabel.Rotation = part.BillboardGui.ImageLabel.Rotation+7.5
  865. part.Touched:connect(function(hit)
  866. if hit.Parent ~= game.Players.LocalPlayer.Character then
  867. if hit.Parent:FindFirstChild("Humanoid") then
  868. hit.Parent.Humanoid.Health = 0
  869. part:remove()
  870. end
  871. end
  872. part.Velocity = part.CFrame.lookVector*30 +Vector3.new(0,50,0)
  873. end)
  874.  
  875. end
  876. for number,part in pairs(stars) do
  877. if part == nil then
  878. part:remove()
  879. table.remove(stars,number)
  880. break
  881. end
  882.  
  883. part.Touched:connect(function(hit)
  884. part.Velocity = part.CFrame.lookVector*20 +Vector3.new(0,70,0)
  885. end)
  886.  
  887. end
  888. for number,part in pairs(coins) do
  889. if takeCooldown == false then
  890. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
  891. part:remove()
  892. takeCooldown = true
  893. CoinsVal = CoinsVal+10
  894. local coinSound = sound:Clone()
  895. coinSound.SoundId = "rbxassetid://138702491"
  896. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  897. coinSound:Play()
  898. game:GetService("Debris"):AddItem(coinSound,3)
  899. table.remove(coins,number)
  900. wait()
  901. takeCooldown = false
  902. end
  903. end
  904. end
  905. for number,part in pairs(mushrooms) do
  906. if takeCooldown == false then
  907. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
  908. part:remove()
  909. takeCooldown = true
  910.  
  911. local coinSound = sound:Clone()
  912. coinSound.Volume = 0.07
  913. coinSound.SoundId = "rbxassetid://162456532"
  914. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  915. coinSound:Play()
  916. game:GetService("Debris"):AddItem(coinSound,3)
  917. table.remove(mushrooms,number)
  918. if lifes == 2 and lastLife == 2 then
  919. CoinsVal = CoinsVal+20
  920. end
  921. if lifes == 1 then
  922. lifes = 2
  923. end
  924. if lifes == 2 and lastLife == 1 then
  925. growing = true
  926. grow()
  927. growing = false
  928. end
  929. lastLife = lifes
  930. wait(.1)
  931. takeCooldown = false
  932. end
  933. end
  934. end
  935. for number,part in pairs(stars) do
  936. if takeCooldown == false then
  937. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 4 then
  938. part:remove()
  939. if starA == false then
  940. takeCooldown = true
  941.  
  942. local coinSound = sound:Clone()
  943.  
  944. coinSound.SoundId = "rbxassetid://162456532"
  945. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  946. coinSound:Play()
  947. game:GetService("Debris"):AddItem(coinSound,3)
  948. levelMusic:Stop()
  949. wait(0.5)
  950. local starSound = sound:Clone()
  951.  
  952. starSound.SoundId = "rbxassetid://853707984"
  953. starSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  954. starSound:Play()
  955. --------satrSound:Pitch 2
  956.  
  957. starA = true
  958. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge
  959. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  960. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  961. if part:IsA("BasePart") then
  962. part.Transparency = 1
  963. end
  964. end
  965.  
  966. game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
  967.  
  968.  
  969.  
  970.  
  971. table.remove(stars,number)
  972.  
  973. wait(.1)
  974. takeCooldown = false
  975.  
  976. wait(15)
  977. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
  978. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  979. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  980. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  981. part.Transparency = 0
  982. end
  983. end
  984. levelMusic:Play()
  985. game.Players.LocalPlayer.Character.Parent = game.Workspace
  986.  
  987. starA = false
  988. starSound:remove()
  989. end
  990. end
  991. end
  992. end
  993.  
  994.  
  995.  
  996.  
  997. for number,part in pairs(flowers) do
  998. if takeCooldown == false then
  999. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
  1000. part:remove()
  1001. takeCooldown = true
  1002.  
  1003. local coinSound = sound:Clone()
  1004. coinSound.Volume = 0.07
  1005. coinSound.SoundId = "rbxassetid://162456532"
  1006. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  1007. coinSound:Play()
  1008. game:GetService("Debris"):AddItem(coinSound,3)
  1009. table.remove(flowers,number)
  1010. if lifes == 3 and lastLife == 3 then
  1011. CoinsVal = CoinsVal+30
  1012. end
  1013. if lifes == 1 then
  1014. growing = true
  1015. grow()
  1016. growing = false
  1017. lifes = 2
  1018. end
  1019. if lifes == 2 then
  1020. growing = true
  1021. firegrow()
  1022. growing = false
  1023. end
  1024. lifes = 3
  1025.  
  1026. wait(.1)
  1027. takeCooldown = false
  1028.  
  1029. lastLife = lifes
  1030.  
  1031. end
  1032. end
  1033. end
  1034.  
  1035. for _,part in pairs(coins) do
  1036. part.CFrame = part.CFrame*CFrame.Angles(0,0.05,0)
  1037. end
  1038.  
  1039. for namba,mush in pairs(mushrooms) do
  1040. if mush == nil then
  1041. table.remove(mushrooms,namba)
  1042. end
  1043. mush.CFrame = (CFrame.new(mush.CFrame.p,Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,mush.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))-Vector3.new(0,0.1,0))*CFrame.Angles(0,math.rad(180),0)
  1044.  
  1045. mush.Velocity = mush.CFrame.lookVector*5
  1046. end
  1047. for namba,flowo in pairs(flowers) do
  1048. if flowo == nil then
  1049. table.remove(flowers,namba)
  1050. end
  1051. end
  1052. if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude <= 1 then
  1053.  
  1054. if stopped == false and jumping == false then
  1055. stopped = true
  1056. walking = false
  1057. walkStop()
  1058. end
  1059. end
  1060. if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  1061. if walking == false and jumping == false then
  1062. stopped = false
  1063.  
  1064. walk()
  1065. end
  1066. end
  1067. end)
  1068. game.Players.LocalPlayer.Character.Humanoid.StateChanged:connect(function(old,new)
  1069. if new == Enum.HumanoidStateType.Jumping or new == Enum.HumanoidStateType.Freefall then
  1070. jump()
  1071.  
  1072. jumping = true
  1073. end
  1074. if new == Enum.HumanoidStateType.Landed then
  1075. land()
  1076. wait(.05)
  1077. jumping = false
  1078. end
  1079. end)
  1080.  
  1081. game.Players.LocalPlayer.Character.Humanoid.HealthChanged:connect(function(newhealth)
  1082. if starA == false then
  1083. if 1 > newhealth then
  1084. if growing == false then
  1085.  
  1086. lifes = lifes-1
  1087.  
  1088. if lifes > 0 then
  1089. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  1090. else
  1091.  
  1092. for _,child in pairs(game.Workspace:GetChildren()) do
  1093. if child:IsA("BasePart") then
  1094. if child.Name ~= "Baseplate" and child.Name ~= "Terrain" then
  1095. child:remove()
  1096. end
  1097. end
  1098. end
  1099. if game.Workspace:FindFirstChild("Baseplate") then
  1100. game.Workspace.Baseplate.Transparency = 1
  1101. GroundTexture:remove()
  1102. end
  1103. levelMusic:remove()
  1104. local gameover =sound:Clone()
  1105. gameover.SoundId = "rbxassetid://187102994"
  1106. gameover.Parent = game.Players.LocalPlayer.Character
  1107. gameover:Play()
  1108. color.Saturation = -1
  1109. color.Contrast = 5
  1110.  
  1111. sky.SkyboxBk = "http://www.roblox.com/asset/?id=1091341380"
  1112. sky.SkyboxFt = "http://www.roblox.com/asset/?id=1091341380"
  1113. sky.SkyboxLf = "http://www.roblox.com/asset/?id=1091341380"
  1114. sky.SkyboxRt = "http://www.roblox.com/asset/?id=1091341380"
  1115. sky.SkyboxUp = "http://www.roblox.com/asset/?id=1091341494"
  1116. sky.SkyboxDn = "http://www.roblox.com/asset/?id=1091341494"
  1117.  
  1118.  
  1119. sky.SunAngularSize = 0
  1120. sky.MoonAngularSize = 0
  1121.  
  1122.  
  1123. wait(4)
  1124. if game.Workspace:FindFirstChild("Baseplate") then
  1125. game.Workspace.Baseplate.Transparency = 0
  1126. end
  1127. gameover:remove()
  1128. color:remove()
  1129. sky:remove()
  1130.  
  1131. end
  1132.  
  1133.  
  1134. if lifes == 1 then
  1135. growing = true
  1136. degrow()
  1137. growing = false
  1138. end
  1139. if lifes == 2 then
  1140. growing = true
  1141. defiregrow()
  1142. growing = false
  1143. end
  1144.  
  1145.  
  1146. else
  1147. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  1148. end
  1149. end
  1150. end
  1151. if starA == true then
  1152. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  1153. end
  1154. lastLife = lifes
  1155. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement