Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Start
- local open = Instance.new("TextButton")
- local screengui = Instance.new("ScreenGui")
- local frame = Instance.new("Frame")
- local scroll = Instance.new("ScrollingFrame")
- local input = Instance.new("TextBox")
- local exe = Instance.new("TextButton")
- local clr = Instance.new("TextButton")
- local hub = Instance.new("TextButton")
- local hubframe = Instance.new("Frame")
- local closehub = Instance.new("TextButton")
- local script1 = Instance.new("TextButton")
- local script2 = Instance.new("TextButton")
- --Propetiss
- screengui.Parent = game.Players.LocalPlayer.PlayerGui
- screengui.Name = "ScriptHub"
- open.Parent = screengui
- open.Position = UDim2.new(0, 0, 0, 500)
- open.BackgroundColor3 = Color3.new(255, 0, 0)
- open.BorderSizePixel = 10
- open.Size = UDim2.new(0, 200, 0, 50)
- open.Text = "Open"
- open.Name = "Open/Close"
- open.MouseButton1Click:connect(function()
- if frame.Visible == false then
- frame.Visible = true
- else
- frame.Visible = false
- end
- end)
- frame.Parent = screengui
- frame.Position = UDim2.new(0, 450, 0, 250)
- frame.BackgroundColor3 = Color3.new(255, 255, 255)
- frame.BorderSizePixel = 10
- frame.Size = UDim2.new(0, 450, 0, 350)
- frame.Draggable = true
- frame.Active = true
- frame.Selectable = true
- frame.Name = "ScriptFrame"
- frame.Visible = false
- scroll.Parent = frame
- scroll.Position = UDim2.new(0, 25, 0, 25)
- scroll.Size = UDim2.new(0, 400, 0, 250)
- scroll.CanvasSize = UDim2.new(0, 0 , 0, 999999999)
- scroll.BackgroundColor3 = Color3.new(255, 255, 255)
- scroll.Name = "Scroll"
- input.Parent = scroll
- input.Position = UDim2.new(0, 0, 0, -2)
- input.Size = UDim2.new(0, 389, 0, 999999999)
- input.BackgroundColor3 = Color3.new(255, 255, 255)
- input.ClearTextOnFocus = false
- input.MultiLine = true
- input.TextXAlignment = Enum.TextXAlignment.Left
- input.TextYAlignment = Enum.TextYAlignment.Top
- input.Text = "--Script Here--"
- exe.Parent = frame
- exe.Position = UDim2.new(0, 15, 0, 295)
- exe.Size = UDim2.new(0, 190, 0, 40)
- exe.BackgroundColor3 = Color3.new(255, 0, 0)
- exe.BorderSizePixel = 6
- exe.TextSize = 30
- exe.Text = "Execute"
- exe.Name = "Execute"
- exe.MouseButton1Click:connect(function()
- loadstring(input.Text)()
- end)
- clr.Parent = frame
- clr.Position = UDim2.new(0, 245, 0, 295)
- clr.Size = UDim2.new(0, 190, 0, 40)
- clr.BackgroundColor3 = Color3.new(255, 0, 0)
- clr.BorderSizePixel = 6
- clr.Text = "Clear"
- clr.TextSize = 30
- clr.Name = "Clear"
- clr.MouseButton1Click:connect(function()
- input.Text = ""
- end)
- hub.Parent = frame
- hub.Position = UDim2.new(0, 180, 0, 0)
- hub.Size = UDim2.new(0, 100, 0, 20)
- hub.Text = "Scripts"
- hub.Name = "Hub"
- hub.MouseButton1Click:connect(function()
- hubframe.Visible = true
- end)
- hubframe.Parent = hub
- hubframe.Position = UDim2.new(0, -180, 0, 0)
- hubframe.Size = UDim2.new(0, 450, 0, 350)
- hubframe.BackgroundColor3 = Color3.new(0, 0, 0, 0)
- hubframe.BackgroundTransparency = 0.4
- hubframe.Name = "hubframe"
- hubframe.Visible = false
- closehub.Parent = hubframe
- closehub.Position = UDim2.new(0, 425, 0, 20)
- closehub.Text = "X"
- closehub.TextSize = 30
- closehub.BackgroundTransparency = 0.3
- closehub.Name = "CloseHub"
- script1.Parent = hubframe
- script1.Position = UDim2.new(0, 10, 0, 20)
- script1.Size = UDim2.new(0, 100, 0, 40)
- script1.Text = "Mario"
- script1.TextSize = 10
- script1.BackgroundTransparency = 0.3
- script1.Name = "Mario"
- script1.Parent = hubframe
- script1.Position = UDim2.new(0, 10, 0, 80)
- script1.Size = UDim2.new(0, 100, 0, 40)
- script1.Text = "Light Cubes"
- script1.TextSize = 10
- script1.BackgroundTransparency = 0.3
- script1.Name = "Light Cubes"
- --Scripts
- script1.MouseButton1Click:connect(function()
- --Script made by Pedrorb03. Enjoy it ;)
- --Set Up
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
- game.Players.LocalPlayer.Character.Humanoid.Health = 1
- for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
- anim:Stop()
- end
- game.Players.LocalPlayer.Character.Animate:remove()
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part.ClassName == "Body Colors" or part.ClassName == "Accessory" or part.ClassName == "Pants" or part.ClassName == "Shirt" or part.ClassName == "Shirt Graphic" then
- part:remove()
- end
- end
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:IsA("BasePart") then
- part.BrickColor = BrickColor.new("Pastel brown")
- end
- end
- shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
- pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
- game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(0.45,0.45,0.45)
- game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,0.3,-0.1)
- game.Players.LocalPlayer.Character.Head.face:remove()
- game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://494265290"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
- game.Players.LocalPlayer.Character.Head.Jumping.SoundId = "rbxassetid://158309736"
- sound = nil
- while sound == nil do
- wait()
- sound = Instance.new("Sound")
- if sound ~= nil then
- break
- end
- end
- levelMusic = sound:Clone()
- levelMusic.SoundId = "rbxassetid://232553386"
- levelMusic.Looped = true
- levelMusic.Parent = game.Players.LocalPlayer.Character
- levelMusic.Volume = 0.3
- levelMusic:Play()
- takeCooldown = false
- lifes = 2
- lastLife = lifes
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 65
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
- --Map Set Up
- if not game.Workspace:FindFirstChild("Baseplate") then
- baseplate = Instance.new("Part") baseplate.Anchored = true baseplate.CFrame = CFrame.new(0,-10,0) baseplate.Name = "Baseplate" baseplate.Locked = true baseplate.Parent = game.Workspace
- end
- if game.Workspace:FindFirstChild("Baseplate") then
- game.Workspace.Baseplate.Size = Vector3.new(2048,20,2048)
- GroundTexture = Instance.new("Texture",game.Workspace.Baseplate) GroundTexture.Texture = "rbxassetid://1089643294" GroundTexture.StudsPerTileU = 3 GroundTexture.StudsPerTileV = 3
- GroundTexture.Face = "Top"
- game.Workspace.Baseplate.CFrame = CFrame.new(0,-9.5,0)
- end
- sky = Instance.new("Sky",game.Lighting)
- sky.SkyboxBk = "rbxassetid://1089701835"
- sky.SkyboxFt = "rbxassetid://1089701835"
- sky.SkyboxLf = "rbxassetid://1089701835"
- sky.SkyboxRt = "rbxassetid://1089701835"
- sky.SkyboxUp = "rbxassetid://1089702222"
- sky.SkyboxDn = "rbxassetid://1089702222"
- sky.SunTextureId = "rbxassetid://1089711654"
- sky.MoonTextureId = "rbxassetid://1089711897"
- sky.SunAngularSize = 10
- sky.MoonAngularSize = 5
- sky.StarCount = 0
- color = Instance.new("ColorCorrectionEffect",game.Lighting) color.Saturation = 1 color.Contrast = 1
- brick = Instance.new("Part") brick.Anchored = true brick.Size = Vector3.new(3.2,3.2,3.2)
- mesh = Instance.new("SpecialMesh",brick) mesh.MeshId = "rbxassetid://1089547491" mesh.TextureId = "rbxassetid://1089552092"
- bricks = {}
- for _=1,math.random(200,350) do
- local part = brick:Clone()
- part.CFrame = CFrame.new(math.random(-102400,102400)/100,11,math.random(-102400,102400)/100)
- part.Parent = game.Workspace
- table.insert(bricks,part)
- end
- block = Instance.new("Part") block.Anchored = true block.Size = Vector3.new(3,3,3)
- mesh = Instance.new("SpecialMesh",block) mesh.MeshId = "rbxassetid://1089565562" mesh.TextureId = "rbxassetid://1089562101"
- blocks = {}
- for _=1,math.random(100,150) do
- local part = block:Clone()
- part.CFrame = CFrame.new(math.random(-102400,102400)/100,11,math.random(-102400,102400)/100)
- part.Parent = game.Workspace
- table.insert(blocks,part)
- end
- coin = Instance.new("Part") coin.Anchored = true coin.Size = Vector3.new(2,2,2) coin.CanCollide = false
- mesh = Instance.new("SpecialMesh",coin) mesh.MeshId = "rbxassetid://652133659" mesh.Scale = Vector3.new(0.005, 0.005, 0.005)
- coin.Color = Color3.fromRGB(255,245,0)
- coins = {}
- for _=1,math.random(300,350) do
- local part = coin:Clone()
- part.CFrame = CFrame.new(math.random(-102400,102400)/100,2,math.random(-102400,102400)/100)
- part.Parent = game.Workspace
- table.insert(coins,part)
- end
- gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- coinGui = Instance.new("TextLabel",gui) coinGui.BackgroundTransparency = 1 coinGui.TextScaled = true coinGui.Font = Enum.Font.Arcade coinGui.TextColor3 = Color3.fromRGB(255,255,255)
- coinGui.Size = UDim2.new(0.15,0,0.075,0)
- mushroom = Instance.new("Part") mushroom.Anchored = false mushroom.Size = Vector3.new(2.5,2.5,2.5)
- mesh = Instance.new("SpecialMesh",mushroom) mesh.MeshId = "rbxassetid://843546054" mesh.TextureId = "rbxassetid://843546065" mesh.Scale = Vector3.new(0.05, 0.05, 0.05)
- mushrooms = {}
- flower = Instance.new("Part") flower.Anchored = true flower.Size = Vector3.new(2.5,2.5,2.5)
- mesh = Instance.new("SpecialMesh",flower) mesh.MeshId = "rbxassetid://1091549739" mesh.TextureId = "rbxassetid://1091549771" mesh.Scale = Vector3.new(0.15, 0.15, 0.15)
- flowers = {}
- star = Instance.new("Part") star.Anchored = false star.Size = Vector3.new(2.5,2.5,2.5) star.CanCollide = false
- mesh = Instance.new("SpecialMesh",star) mesh.MeshId = "rbxassetid://491129029" mesh.TextureId = "rbxassetid://1092055458" mesh.Scale = Vector3.new(0.075, 0.075, 0.075)
- stars = {}
- fire = Instance.new("Part") fire.Anchored = false flower.Size = Vector3.new(1.5,1.5,1.5) fire.Transparency = 1
- meshhh = Instance.new("BillboardGui",fire) meshhh.LightInfluence = 0 meshhh.Size = UDim2.new(1.5,0,1.5,0)
- imagee = Instance.new("ImageLabel",meshhh) imagee.BackgroundTransparency = 1 imagee.Size = UDim2.new(1,0,1,0) imagee.Image = "rbxassetid://1091847477"
- fires = {}
- CoinsVal = 0
- --Animation Functions
- walking = false
- stopped = true
- jumping = false
- function walk()
- if lifes > 1 then
- walking = true
- for i=1,1 do
- wait(0.1)
- if stopped == false and jumping == false then
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
- else
- break
- end
- wait(0.1)
- if stopped == false and jumping == false then
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
- else
- break
- end
- end
- walking = false
- else
- walking = true
- for i=1,1 do
- wait(0.1)
- if stopped == false and jumping == false then
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
- 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))
- 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))
- else
- break
- end
- wait(0.1)
- if stopped == false and jumping == false then
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
- 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))
- 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))
- else
- break
- end
- end
- walking = false
- end
- end
- function walkStop()
- if lifes > 1 then
- for i=1,1 do
- if jumping == false and stopped == true and walking == false then
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-90))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,1,-0.5)*CFrame.Angles(math.rad(90),0,math.rad(-30))
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
- else
- break
- end
- wait(0.25)
- if jumping == false and stopped == true and walking == false then
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- else
- break
- end
- end
- else
- for i=1,1 do
- if jumping == false and stopped == true and walking == false then
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-0.4,0.25,-0.75)*CFrame.Angles(0,0,math.rad(-90))
- 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))
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- 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))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
- else
- break
- end
- wait(0.25)
- if jumping == false and stopped == true and walking == false then
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- else
- break
- end
- end
- end
- end
- function jump()
- if lifes > 1 then
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- else
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- 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))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- end
- end
- function land()
- if lifes > 1 then
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- else
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
- end
- end
- growing = false
- function degrow()
- for i=1,5 do
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
- local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
- rs.Parent = game.Players.LocalPlayer.Character.Torso
- ls.Parent = game.Players.LocalPlayer.Character.Torso
- rh.Parent = game.Players.LocalPlayer.Character.Torso
- lh.Parent = game.Players.LocalPlayer.Character.Torso
- n.Parent = game.Players.LocalPlayer.Character.Torso
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- wait(.1)
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
- local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
- rs.Parent = game.Players.LocalPlayer.Character.Torso
- ls.Parent = game.Players.LocalPlayer.Character.Torso
- rh.Parent = game.Players.LocalPlayer.Character.Torso
- lh.Parent = game.Players.LocalPlayer.Character.Torso
- n.Parent = game.Players.LocalPlayer.Character.Torso
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- wait(.1)
- end
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
- local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
- rs.Parent = game.Players.LocalPlayer.Character.Torso
- ls.Parent = game.Players.LocalPlayer.Character.Torso
- rh.Parent = game.Players.LocalPlayer.Character.Torso
- lh.Parent = game.Players.LocalPlayer.Character.Torso
- n.Parent = game.Players.LocalPlayer.Character.Torso
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- end
- function grow()
- for i=1,5 do
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
- local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
- rs.Parent = game.Players.LocalPlayer.Character.Torso
- ls.Parent = game.Players.LocalPlayer.Character.Torso
- rh.Parent = game.Players.LocalPlayer.Character.Torso
- lh.Parent = game.Players.LocalPlayer.Character.Torso
- n.Parent = game.Players.LocalPlayer.Character.Torso
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- wait(.1)
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
- local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
- rs.Parent = game.Players.LocalPlayer.Character.Torso
- ls.Parent = game.Players.LocalPlayer.Character.Torso
- rh.Parent = game.Players.LocalPlayer.Character.Torso
- lh.Parent = game.Players.LocalPlayer.Character.Torso
- n.Parent = game.Players.LocalPlayer.Character.Torso
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- wait(.1)
- end
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
- local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
- rs.Parent = game.Players.LocalPlayer.Character.Torso
- ls.Parent = game.Players.LocalPlayer.Character.Torso
- rh.Parent = game.Players.LocalPlayer.Character.Torso
- lh.Parent = game.Players.LocalPlayer.Character.Torso
- n.Parent = game.Players.LocalPlayer.Character.Torso
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- end
- function firegrow()
- for i=1,5 do
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
- wait(.1)
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
- wait(.1)
- end
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
- end
- function defiregrow()
- for i=1,5 do
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
- wait(.1)
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
- wait(.1)
- end
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
- game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
- end
- function fireThrow()
- local soundos = sound:Clone()
- soundos.SoundId = "rbxassetid://182755400"
- soundos.Parent = game.Players.LocalPlayer.Character.Torso
- soundos:Play()
- game:GetService("Debris"):AddItem(soundos,2)
- local fie = fire:Clone()
- fie.CanCollide = false
- 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)
- fie.Parent = game.Workspace
- table.insert(fires,fie)
- fie.Velocity = fie.CFrame.lookVector*30
- game:GetService("Debris"):AddItem(fie,3)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(90))
- wait(.1)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- end
- --Main
- game.Players.LocalPlayer.Character["Right Leg"].Touched:connect(function(hit)
- if hit.Parent then
- if hit.Parent ~= game.Players.LocalPlayer.Character then
- if hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent.Humanoid.Health > 0 then
- hit.Parent.Humanoid.Health = 0
- hit.CanCollide = true
- hit.Size = Vector3.new(hit.Size.X,0.05,hit.Size.Z)
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- local sond = sound:Clone()
- sond.SoundId = "rbxassetid://140439666"
- sond.Parent = game.Players.LocalPlayer.Character.Torso
- sond:Play()
- game:GetService("Debris"):AddItem(sond,2)
- end
- end
- end
- end
- end)
- game.Players.LocalPlayer.Character.Head.Touched:connect(function(part)
- local did = false
- local num = 0
- for number,part2 in pairs(bricks) do
- if part2 == part then
- did = true
- num = number
- end
- end
- if did == true then
- part:remove()
- local coinSound = sound:Clone()
- coinSound.SoundId = "rbxassetid://317619936"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- table.remove(bricks,num)
- end
- local did = false
- local num = 0
- for number,part2 in pairs(blocks) do
- if part2 == part then
- did = true
- num = number
- end
- end
- if did == true then
- part.Mesh.MeshId = "rbxassetid://1089569418"
- part.Mesh.TextureId = "rbxassetid://1089568636"
- local coinSound = sound:Clone()
- coinSound.SoundId = "rbxassetid://317619936"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- table.remove(blocks,num)
- local get = math.random(1,2)
- if get == 1 then
- local coinHolo = coin:Clone()
- coinHolo.Parent = part
- coinHolo.CFrame = part.CFrame
- CoinsVal = CoinsVal+10
- local coinSound = sound:Clone()
- coinSound.SoundId = "rbxassetid://138702491"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- for i=1,10 do
- wait()
- coinHolo.CFrame = coinHolo.CFrame+Vector3.new(0,0.25,0)
- end
- wait(1)
- coinHolo:remove()
- end
- if get == 2 then
- local chance = math.random(1,3)
- if chance > 1 then
- if lifes > 1 then
- local flow = flower:Clone()
- flow.Parent = game.Workspace
- flow.CFrame = part.CFrame
- table.insert(flowers,flow)
- for i=1,10 do
- wait()
- flow.CFrame = flow.CFrame+Vector3.new(0,0.25,0)
- end
- end
- if lifes == 1 then
- local mush = mushroom:Clone()
- mush.CFrame = part.CFrame+Vector3.new(0,2,0)
- mush.Parent = game.Workspace
- table.insert(mushrooms,mush)
- end
- end
- if chance == 1 then
- local sta = star:Clone()
- sta.CFrame = part.CFrame+Vector3.new(0,2,0)
- sta.Parent = game.Workspace
- table.insert(stars,sta)
- end
- end
- end
- end)
- starA = false
- cooldown = false
- colorz = 0
- starTimer = 0
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.C then
- if color then
- color.Enabled = not color.Enabled
- end
- end
- if key.KeyCode == Enum.KeyCode.Z then
- if lifes > 1 then
- local flow = flower:Clone()
- flow.Parent = game.Workspace
- flow.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- table.insert(flowers,flow)
- end
- if lifes == 1 then
- local mush = mushroom:Clone()
- mush.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- mush.Parent = game.Workspace
- table.insert(mushrooms,mush)
- end
- end
- if key.KeyCode == Enum.KeyCode.X then
- local sta = star:Clone()
- sta.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- sta.Parent = game.Workspace
- table.insert(stars,sta)
- end
- if key.KeyCode == Enum.KeyCode.E then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- if lifes == 3 then
- if cooldown == false then
- cooldown = true
- fireThrow()
- cooldown = false
- end
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(key)
- if key.KeyCode == Enum.KeyCode.E then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- starTimer = starTimer+1
- if starTimer > 1 then
- starTimer = 0
- colorz = colorz+1
- if colorz > 5 then
- colorz = 0
- end
- if starA == true then
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:IsA("BasePart") then
- if part.Name == "HumanoidRootPart" then
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child ~= game.Players.LocalPlayer.Character then
- if child:FindFirstChild("Humanoid") then
- for _,parto in pairs(child:GetChildren()) do
- if parto:IsA("BasePart") then
- if (parto.Position-part.Position).magnitude <= 5 then
- parto:remove()
- end
- end
- end
- end
- end
- end
- end
- local clon = part:Clone()
- for _,child in pairs(clon:GetChildren()) do
- if child.ClassName ~= "SpecialMesh" then
- child:remove()
- else
- child.TextureId = ""
- end
- end
- clon.Anchored = true
- if colorz == 0 then
- clon.Color = Color3.fromRGB(255,0,0)
- end
- if colorz == 1 then
- clon.Color = Color3.fromRGB(255,255,0)
- end
- if colorz == 2 then
- clon.Color = Color3.fromRGB(0,255,0)
- end
- if colorz == 3 then
- clon.Color = Color3.fromRGB(0,255,255)
- end
- if colorz == 4 then
- clon.Color = Color3.fromRGB(0,0,255)
- end
- if colorz == 5 then
- clon.Color = Color3.fromRGB(255,0,255)
- end
- game:GetService("Debris"):AddItem(clon,0.5)
- clon.Transparency = 0
- clon.Anchored = true
- clon.CanCollide = false
- clon.Material = Enum.Material.SmoothPlastic
- clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.Parent = game.Workspace
- end
- end
- end
- end
- coinGui.Text = "Total Score: "..CoinsVal
- for number,part in pairs(fires) do
- if part == nil or not part:FindFirstChild("BillboardGui") then
- part:remove()
- table.remove(fires,number)
- break
- end
- part.BillboardGui.ImageLabel.Rotation = part.BillboardGui.ImageLabel.Rotation+7.5
- part.Touched:connect(function(hit)
- if hit.Parent ~= game.Players.LocalPlayer.Character then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.Health = 0
- part:remove()
- end
- end
- part.Velocity = part.CFrame.lookVector*30 +Vector3.new(0,50,0)
- end)
- end
- for number,part in pairs(stars) do
- if part == nil then
- part:remove()
- table.remove(stars,number)
- break
- end
- part.Touched:connect(function(hit)
- part.Velocity = part.CFrame.lookVector*20 +Vector3.new(0,70,0)
- end)
- end
- for number,part in pairs(coins) do
- if takeCooldown == false then
- if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
- part:remove()
- takeCooldown = true
- CoinsVal = CoinsVal+10
- local coinSound = sound:Clone()
- coinSound.SoundId = "rbxassetid://138702491"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- table.remove(coins,number)
- wait()
- takeCooldown = false
- end
- end
- end
- for number,part in pairs(mushrooms) do
- if takeCooldown == false then
- if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
- part:remove()
- takeCooldown = true
- local coinSound = sound:Clone()
- coinSound.Volume = 0.07
- coinSound.SoundId = "rbxassetid://162456532"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- table.remove(mushrooms,number)
- if lifes == 2 and lastLife == 2 then
- CoinsVal = CoinsVal+20
- end
- if lifes == 1 then
- lifes = 2
- end
- if lifes == 2 and lastLife == 1 then
- growing = true
- grow()
- growing = false
- end
- lastLife = lifes
- wait(.1)
- takeCooldown = false
- end
- end
- end
- for number,part in pairs(stars) do
- if takeCooldown == false then
- if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 4 then
- part:remove()
- if starA == false then
- takeCooldown = true
- local coinSound = sound:Clone()
- coinSound.SoundId = "rbxassetid://162456532"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- levelMusic:Stop()
- wait(0.5)
- local starSound = sound:Clone()
- starSound.SoundId = "rbxassetid://1058165596"
- starSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- starSound:Play()
- starA = true
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge
- game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:IsA("BasePart") then
- part.Transparency = 1
- end
- end
- game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
- table.remove(stars,number)
- wait(.1)
- takeCooldown = false
- wait(15)
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
- game.Players.LocalPlayer.Character.Humanoid.Health = 1
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
- part.Transparency = 0
- end
- end
- levelMusic:Play()
- game.Players.LocalPlayer.Character.Parent = game.Workspace
- starA = false
- starSound:remove()
- end
- end
- end
- end
- for number,part in pairs(flowers) do
- if takeCooldown == false then
- if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
- part:remove()
- takeCooldown = true
- local coinSound = sound:Clone()
- coinSound.Volume = 0.07
- coinSound.SoundId = "rbxassetid://162456532"
- coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- coinSound:Play()
- game:GetService("Debris"):AddItem(coinSound,3)
- table.remove(flowers,number)
- if lifes == 3 and lastLife == 3 then
- CoinsVal = CoinsVal+30
- end
- if lifes == 1 then
- growing = true
- grow()
- growing = false
- lifes = 2
- end
- if lifes == 2 then
- growing = true
- firegrow()
- growing = false
- end
- lifes = 3
- wait(.1)
- takeCooldown = false
- lastLife = lifes
- end
- end
- end
- for _,part in pairs(coins) do
- part.CFrame = part.CFrame*CFrame.Angles(0,0.05,0)
- end
- for namba,mush in pairs(mushrooms) do
- if mush == nil then
- table.remove(mushrooms,namba)
- end
- 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)
- mush.Velocity = mush.CFrame.lookVector*5
- end
- for namba,flowo in pairs(flowers) do
- if flowo == nil then
- table.remove(flowers,namba)
- end
- end
- if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude <= 1 then
- if stopped == false and jumping == false then
- stopped = true
- walking = false
- walkStop()
- end
- end
- if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- if walking == false and jumping == false then
- stopped = false
- walk()
- end
- end
- end)
- game.Players.LocalPlayer.Character.Humanoid.StateChanged:connect(function(old,new)
- if new == Enum.HumanoidStateType.Jumping or new == Enum.HumanoidStateType.Freefall then
- jump()
- jumping = true
- end
- if new == Enum.HumanoidStateType.Landed then
- land()
- wait(.05)
- jumping = false
- end
- end)
- game.Players.LocalPlayer.Character.Humanoid.HealthChanged:connect(function(newhealth)
- if starA == false then
- if 1 > newhealth then
- if growing == false then
- lifes = lifes-1
- if lifes > 0 then
- game.Players.LocalPlayer.Character.Humanoid.Health = 1
- else
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child:IsA("BasePart") then
- if child.Name ~= "Baseplate" and child.Name ~= "Terrain" then
- child:remove()
- end
- end
- end
- if game.Workspace:FindFirstChild("Baseplate") then
- game.Workspace.Baseplate.Transparency = 1
- GroundTexture:remove()
- end
- levelMusic:remove()
- local gameover =sound:Clone()
- gameover.SoundId = "rbxassetid://187102994"
- gameover.Parent = game.Players.LocalPlayer.Character
- gameover:Play()
- color.Saturation = -1
- color.Contrast = 5
- sky.SkyboxBk = "http://www.roblox.com/asset/?id=1091341380"
- sky.SkyboxFt = "http://www.roblox.com/asset/?id=1091341380"
- sky.SkyboxLf = "http://www.roblox.com/asset/?id=1091341380"
- sky.SkyboxRt = "http://www.roblox.com/asset/?id=1091341380"
- sky.SkyboxUp = "http://www.roblox.com/asset/?id=1091341494"
- sky.SkyboxDn = "http://www.roblox.com/asset/?id=1091341494"
- sky.SunAngularSize = 0
- sky.MoonAngularSize = 0
- wait(4)
- if game.Workspace:FindFirstChild("Baseplate") then
- game.Workspace.Baseplate.Transparency = 0
- end
- gameover:remove()
- color:remove()
- sky:remove()
- end
- if lifes == 1 then
- growing = true
- degrow()
- growing = false
- end
- if lifes == 2 then
- growing = true
- defiregrow()
- growing = false
- end
- else
- game.Players.LocalPlayer.Character.Humanoid.Health = 1
- end
- end
- end
- if starA == true then
- game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
- end
- lastLife = lifes
- end)
- end)
- script2.MouseButton1Click:connect(function()
- --wot
- paly = game.Players.LocalPlayer
- char = paly.Character
- torso = char.Torso
- neck = char.Torso.Neck
- hum = char.Humanoid
- Player = game:GetService("Players").LocalPlayer
- local mouse = Player:GetMouse()
- Character = Player.Character
- tors = Character.Torso
- lleg = Character["Left Leg"]
- root = Character.HumanoidRootPart
- hed = Character.Head
- rleg = Character["Right Leg"]
- rarm = Character["Right Arm"]
- larm = Character["Left Arm"]
- local Effects = {}
- attack = false
- local TColor = tors.BrickColor
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- matr = math.random
- local boll = Instance.new("Part",game.Lighting)
- boll.Transparency = 0.5
- boll.Material = "Neon"
- boll.BrickColor = bc("Bright red")
- boll.Anchored = true
- boll.Size = vt(1,1,1)
- boll.Shape = "Ball"
- boll.CanCollide = false
- local shur = Instance.new("Part",game.Lighting)
- shur.Transparency = 0
- shur.Material = "Neon"
- shur.BrickColor = bc("Bright red")
- shur.Anchored = true
- shur.Size = vt(5,0.2,5)
- shur.CanCollide = false
- local Meshshur = Instance.new("CylinderMesh",shur)
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,TorsoColor)
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,10,0)
- bodyVelocity.P=1000
- bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- swait(5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=""
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.Material = "Neon"
- c.BrickColor=bc("Bright red")
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- CV="Hot pink"
- local txt = Instance.new("BillboardGui", c)
- txt.Adornee = c
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Highway"
- text.TextStrokeColor3 = BrickColor.new("Really black").Color
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=c
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=c.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = BrickColor.new("Really red").Color
- v.Shape="Block"
- text.Text = tostring(Dealt)
- local tick = Instance.new("Sound",c)
- tick.SoundId = "rbxassetid://553325070"
- tick.Volume = 1.25
- tick.Pitch = 0.75
- tick:Play()
- c.formFactor="Plate"
- c.Transparency = 0.99
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
- end
- end
- end
- end
- end
- function Explode(rad,par)
- local expart = Instance.new("Part",script.Parent)
- local expart2 = Instance.new("Part",script.Parent)
- local partMesh = Instance.new("SpecialMesh",expart)
- partMesh.MeshType = "Sphere"
- local partMesh2 = Instance.new("SpecialMesh",expart2)
- partMesh2.MeshType = "Sphere"
- local expld = Instance.new("Explosion", script.Parent)
- local plode = Instance.new("Sound",expart)
- plode.SoundId = "rbxassetid://165970126"
- plode.Volume = 2.5
- plode.Pitch = 1
- plode.Looped = false
- plode:Play()
- expld.BlastRadius = rad
- expld.Position = par.Position
- partMesh.Scale = vt(rad,rad,rad)
- expart.Size = vt(1,1,1)*1.5
- expart.Transparency = 0.5
- expart.Anchored = true
- expart.Material = "Neon"
- expart.BrickColor = bc("Deep orange")
- expart.CFrame = par.CFrame
- partMesh2.Scale = vt(rad,rad,rad)
- expart2.Size = vt(1.15,1.15,1.15)*1.5
- expart2.Transparency = 0.5
- expart2.Anchored = true
- expart2.Material = "Neon"
- expart2.BrickColor = bc("Bright orange")
- expart2.CFrame = par.CFrame
- local value = 5
- par:Destroy()
- for i = 0, 100 do
- partMesh.Scale = partMesh.Scale + vt(value,value,value)
- expart.CFrame = expart.CFrame
- partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
- expart2.CFrame = expart.CFrame
- value = value - 0.225
- if value <= 0 then
- expart.Transparency = expart.Transparency + 0.0125
- expart2.Transparency = expart.Transparency + 0.0125
- value = 0
- end
- wait()
- end
- plode.Parent = nil
- expart.Parent = nil
- expart2.Parent = nil
- expld.Parent = nil
- end
- function SkyBeam()
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://163619849"
- s.Pitch = 0.5
- s.Volume = 2.5
- s.Looped = false
- s:Play()
- local spart = Instance.new("Part",workspace)
- spart.Size = vt(1,1,1)
- spart.BrickColor = TColor
- spart.Material = "Neon"
- spart.Transparency = 1
- spart.Anchored = true
- spart.CanCollide = false
- spart.CFrame = tors.CFrame + vt(0,0.01,0)
- local box = Instance.new("SelectionBox", spart)
- box.Adornee = box.Parent
- box.Transparency = 1
- box.Color = BrickColor.new("Really black")
- box.LineThickness = 0.1
- local value = 0.1
- local valuer = 0.1
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size + vt(0.1,0.1,0.1)
- box.Transparency = box.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- for i = 0, 10 do
- valuer = valuer - 0.01
- spart.Transparency = spart.Transparency - 0.1
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size + vt(valuer,10,valuer)
- box.Transparency = box.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- hithere=spart.Touched:connect(function(hit) Damagefunc(hit,35,47,0,"Normal",root,.2,1) end)
- for i = 0, 10 do
- spart.CFrame = tors.CFrame
- for e = 0, 10 do
- value = value + 0.05
- spart.Transparency = spart.Transparency + 0.065
- spart.Size = spart.Size + vt(value,value,value)
- spart.CFrame = tors.CFrame
- wait()
- end
- for e = 0, 10 do
- value = value - 0.05
- spart.Transparency = spart.Transparency - 0.065
- spart.Size = spart.Size + vt(value,value,value)
- spart.CFrame = tors.CFrame
- wait()
- end
- wait()
- end
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Transparency = spart.Transparency + 0.065
- spart.Size = spart.Size - vt(1.5,-10,1.5)
- box.Transparency = box.Transparency + 0.075
- spart.CFrame = tors.CFrame
- wait()
- end
- spart:Destroy()
- s:Destroy()
- end
- function Block()
- local spart = Instance.new("Part",workspace)
- spart.Size = vt(5,8,5)
- spart.BrickColor = TColor
- spart.Material = "Neon"
- spart.Transparency = 1
- spart.Anchored = true
- spart.CanCollide = false
- spart.CFrame = tors.CFrame + vt(0,0.01,0)
- local box = Instance.new("SelectionBox", spart)
- box.Adornee = box.Parent
- box.Transparency = 1
- box.Color = BrickColor.new("Really black")
- box.LineThickness = 0.1
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size + vt(0.05,0.05,0.05)
- box.Transparency = box.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- for i = 0, 5 do
- spart.CFrame = tors.CFrame
- for z = 0, 25 do
- spart.CFrame = tors.CFrame
- spart.Transparency = spart.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- for z = 0, 25 do
- spart.CFrame = tors.CFrame
- spart.Transparency = spart.Transparency + 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- wait()
- spart.CFrame = tors.CFrame
- end
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size - vt(0.05,0.05,0.05)
- box.Transparency = box.Transparency + 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- spart:Destroy()
- end
- function HyperShot()
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://200632561"
- s.Pitch = 0.5
- s.Volume = 1.5
- s.Looped = false
- s:Play()
- local spart = Instance.new("Part",workspace)
- spart.Size = vt(10,10,10)
- spart.BrickColor = TColor
- spart.Material = "Neon"
- spart.Transparency = 0.15
- spart.Anchored = true
- spart.CanCollide = false
- spart.CFrame = tors.CFrame + vt(0,0.01,0)
- spart.Anchored = false
- local box = Instance.new("SelectionBox", spart)
- box.Adornee = box.Parent
- box.Transparency = 0.15
- box.Color = BrickColor.new("Really black")
- box.LineThickness = 0.1
- local spart2 = Instance.new("Part",workspace)
- spart2.Size = vt(8.5,8.5,8.5)
- spart2.BrickColor = BrickColor.random()
- spart2.Material = "Neon"
- spart2.Transparency = 0
- spart2.Anchored = true
- spart2.CanCollide = false
- spart2.CFrame = tors.CFrame + vt(0,0.01,0)
- spart2.Anchored = false
- local box2 = Instance.new("SelectionBox", spart2)
- box2.Adornee = box2.Parent
- box2.Transparency = 0
- box2.Color = BrickColor.new("Really black")
- box2.LineThickness = 0.1
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector *35
- bv.Parent = spart
- local bv2 = Instance.new("BodyVelocity")
- bv2.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv2.velocity = mouse.Hit.lookVector *35
- bv2.Parent = spart2
- wait(0.1)
- hithere=spart.Touched:connect(function(hit) Damagefunc(hit,10,19,0,"Normal",root,.2,1) end)
- for i = 0, 25 do
- local bul = Instance.new("Part",workspace)
- local sphere = Instance.new("SpecialMesh",bul)
- sphere.MeshType = "Sphere"
- bul.Size = vt(1,1,1)
- bul.BrickColor = BrickColor.new("Really black")
- bul.Shape = "Ball"
- bul.Anchored = true
- bul.Material = "Neon"
- bul.Transparency = 0.5
- bul.CanCollide = false
- bul.CFrame = spart.CFrame
- for z = 0, 20 do
- sphere.Scale = sphere.Scale + vt(2.5,2.5,2.5)
- bul.Transparency = bul.Transparency + 0.025
- bul.BrickColor = BrickColor.random()
- bul.CFrame = spart.CFrame
- spart2.BrickColor = BrickColor.random()
- spart.CFrame = spart.CFrame*CFrame.Angles(0.05,0.05,0.05)
- spart2.CFrame = spart2.CFrame*CFrame.Angles(0.05,0.05,0.05)
- box.Transparency = box.Transparency + 0.0025
- spart.Transparency = spart.Transparency + 0.0025
- box2.Transparency = box2.Transparency + 0.0025
- spart2.Transparency = spart2.Transparency + 0.0025
- wait()
- end
- bul:Destroy()
- end
- spart:Destroy()
- spart2:Destroy()
- s:Destroy()
- end
- function BasicShot()
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://200632561"
- s.Pitch = 1
- s.Volume = 1
- s.Looped = false
- s:Play()
- local bul = Instance.new("Part",workspace)
- bul.Size = vt(5,5,5)
- bul.BrickColor = BrickColor.new("Really black")
- bul.Shape = "Ball"
- bul.Material = "Neon"
- bul.Transparency = 0.5
- bul.CanCollide = false
- bul.CFrame = tors.CFrame + vt(0,0.01,0)
- local bul2 = Instance.new("Part",workspace)
- bul2.Size = vt(4.5,4.5,4.5)
- bul2.BrickColor = TColor
- bul2.Shape = "Ball"
- bul2.Material = "Neon"
- bul2.Transparency = 0
- bul2.CanCollide = false
- bul2.CFrame = bul.CFrame
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector * 50
- bv.Parent = bul2
- local bvr = Instance.new("BodyVelocity")
- bvr.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bvr.velocity = mouse.Hit.lookVector * 50
- bvr.Parent = bul
- hithere=bul.Touched:connect(function(hit) Damagefunc(hit,8,13,0,"Normal",root,.2,1) end)
- wait(5)
- bul:Destroy()
- bul2:Destroy()
- s:Destroy()
- end
- mouse.Button1Down:connect(function()
- BasicShot()
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "r" then
- Block()
- end
- if k == "e" then
- HyperShot()
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement