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