Advertisement
pz_java

Mario

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