Advertisement
miissso

fdf

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