Advertisement
sIendytubble

super mario

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