SHARE
TWEET

Untitled

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