Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- local block = Instance.new("Part", script)
- block.Size = Vector3.new(2,2,1)
- block.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block.Color = Color3.fromHSV(0,0,1)
- block.Material = 'SmoothPlastic'
- local nokill = Instance.new("RemoteEvent", block)
- local block2 = Instance.new("Part", block)
- block2.Size = Vector3.new(0.85,2,0.85)
- block2.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block2.Color = Color3.fromHSV(0,0,1)
- block2.Material = 'SmoothPlastic'
- local nokill2 = Instance.new("RemoteEvent", block2)
- local block4 = Instance.new("Part", block)
- block4.Size = Vector3.new(0.9,2,0.9)
- block4.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block4.Color = Color3.fromHSV(0,0,1)
- block4.Material = 'SmoothPlastic'
- local nokill4 = Instance.new("RemoteEvent", block4)
- local block5 = Instance.new("Part", block)
- block5.Size = Vector3.new(0.9,2,0.9)
- block5.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block5.Color = Color3.fromHSV(0,0,1)
- block5.Material = 'SmoothPlastic'
- local nokill5 = Instance.new("RemoteEvent", block5)
- local block3 = Instance.new("Part", block)
- block3.Size = Vector3.new(0.85,2,0.85)
- block3.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block3.Color = Color3.fromHSV(0,0,1)
- block3.Material = 'SmoothPlastic'
- local block6 = Instance.new("Part", block)
- block6.Size = Vector3.new(1,1,1)
- block6.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block6.Color = Color3.fromHSV(0,0,1)
- block6.Material = 'SmoothPlastic'
- local block7 = Instance.new("Part", block)
- block7.Size = Vector3.new(0.125,0.5,0.5)
- block7.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block7.Color = Color3.fromHSV(0,0,0)
- block7.Material = 'SmoothPlastic'
- local block8 = Instance.new("Part", block)
- block8.Size = Vector3.new(0.125,0.5,0.5)
- block8.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block8.Color = Color3.fromHSV(0,0,0)
- block8.Material = 'SmoothPlastic'
- local block9 = Instance.new("Part", block)
- block9.Size = Vector3.new(2.093, 0.819,2.287)
- block9.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block9.Color = Color3.fromHSV(0,0,1)
- block9.Material = 'SmoothPlastic'
- local block10 = Instance.new("Part", block)
- block10.Size = Vector3.new(.5, .5, 0.75)
- block10.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block10.Color = Color3.fromHSV(0,0,1)
- block10.Material = 'SmoothPlastic'
- local block11 = Instance.new("Part", block)
- block11.Size = Vector3.new(.35, .35, .5)
- block11.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
- block11.Color = Color3.fromHSV(0,0,0.5)
- block11.Material = 'SmoothPlastic'
- ShootWeld2 = Instance.new("Weld", block6)
- ShootWeld2.Part0 = block8
- ShootWeld2.Part1 = block6
- ShootWeld2.C0 = CFrame.new(0.1625,-0.0625,0.35)
- ShootWeld = Instance.new("Weld", block6)
- ShootWeld.Part0 = block7
- ShootWeld.Part1 = block6
- ShootWeld.C0 = CFrame.new(-0.1625,-0.0625,0.35)
- ShootWeld3 = Instance.new("Weld", block6)
- ShootWeld3.Part0 = block9
- ShootWeld3.Part1 = block6
- ShootWeld3.C0 = CFrame.new(0,-0.675,0)
- ShootWeld4 = Instance.new("Weld", block6)
- ShootWeld4.Part0 = block10
- ShootWeld4.Part1 = block6
- ShootWeld4.C0 = CFrame.new(-0.9,0.25,0)
- ShootWeld5 = Instance.new("Weld", block10)
- ShootWeld5.Part0 = block11
- ShootWeld5.Part1 = block10
- ShootWeld5.C0 = CFrame.new(0,0,.25)
- local nokill6 = Instance.new("RemoteEvent", block6)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = block3
- Mesh.MeshId = "rbxasset://fonts//rightleg.mesh"
- Mesh3 = Instance.new("SpecialMesh")
- Mesh3.Parent = block
- Mesh3.MeshId = "rbxasset://fonts//torso.mesh"
- Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = block2
- Mesh2.MeshId = "rbxasset://fonts//leftleg.mesh"
- Mesh5 = Instance.new("SpecialMesh")
- Mesh5.Parent = block4
- Mesh5.MeshId = "rbxasset://fonts//rightarm.mesh"
- Mesh6 = Instance.new("SpecialMesh")
- Mesh6.Parent = block5
- Mesh6.MeshId = "rbxasset://fonts//leftarm.mesh"
- Mesh7 = Instance.new("SpecialMesh")
- Mesh7.Parent = block6
- Mesh7.MeshId = "rbxasset://fonts//head.mesh"
- Mesh8 = Instance.new("SpecialMesh")
- Mesh8.Parent = block9
- Mesh8.MeshId = "rbxassetid://6342814603"
- Mesh8.Scale = Vector3.new(1,1,1)
- Mesh8.TextureId = "rbxassetid://6342842560"
- local nokill3 = Instance.new("RemoteEvent", block3)
- block3.Locked = true
- block.Locked = true
- block2.Locked = true
- block3.Locked = true
- block4.Locked = true
- block5.Locked = true
- block6.Locked = true
- ragdoll = owner.Character
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- local blockweld = Instance.new("ManualWeld", block)
- blockweld.Part0 = block
- blockweld.Part1 = block2
- blockweld.C0 = CFrame.new(0.5, -2, 0)
- local blockweld69 = Instance.new("ManualWeld", block)
- blockweld69.Part0 = block
- blockweld69.Part1 = block6
- blockweld69.C0 = CFrame.new(0, 1.5, 0)
- local blockweld2 = Instance.new("ManualWeld", block)
- blockweld2.Part0 = block
- blockweld2.Part1 = block3
- blockweld2.C0 = CFrame.new(-0.5, -2, 0)
- local blockweld3 = Instance.new("ManualWeld", block)
- blockweld3.Part0 = block
- blockweld3.Part1 = block4
- blockweld3.C0 = CFrame.new(1.5, 0, 0)
- local blockweld4 = Instance.new("ManualWeld", block)
- blockweld4.Part0 = block
- blockweld4.Part1 = block5
- blockweld4.C0 = CFrame.new(-1.5, 0, 0)
- local nokill7 = Instance.new("RemoteEvent", blockweld)
- local nokill8 = Instance.new("RemoteEvent", blockweld2)
- local nokill9 = Instance.new("RemoteEvent", blockweld3)
- local nokill10 = Instance.new("RemoteEvent", blockweld4)
- local nokill11 = Instance.new("RemoteEvent", blockweld69)
- local nokill12 = Instance.new("RemoteEvent", block7)
- local nokill13 = Instance.new("RemoteEvent", block8)
- local nokill14 = Instance.new("RemoteEvent", block9)
- local nokill15 = Instance.new("RemoteEvent", block10)
- local nokill16 = Instance.new("RemoteEvent", block11)
- for i,v in pairs(owner.Character:GetDescendants()) do
- pcall(function()
- if v ~= owner.Character.Humanoid then
- if v ~= owner.Character then
- v.Parent = nil
- end
- end
- end)
- end
- local density = 1
- local friction = 1
- local elasticity = 0
- local frictionWeight = 100000000000
- local elasticityWeight = 100000000000
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- for i,v in pairs(block:GetDescendants()) do
- pcall(function()
- v:SetNetworkOwner(owner)
- v.CustomPhysicalProperties = physProperties
- v.CanQuery = false
- v.CanTouch = false
- end)
- end
- local object = Instance.new("ObjectValue", owner.PlayerGui)
- object.Value = block
- object.Name = 'BLOCK'
- local object2 = Instance.new("ObjectValue", owner.PlayerGui)
- object2.Value = nokill
- object2.Name = 'REMOTE'
- local object3 = Instance.new("ObjectValue", owner.PlayerGui)
- object3.Value = nokill2
- object3.Name = 'REMOTE2'
- local object4 = Instance.new("ObjectValue", owner.PlayerGui)
- object4.Value = nokill3
- object4.Name = 'REMOTE3'
- local object5 = Instance.new("ObjectValue", owner.PlayerGui)
- object5.Value = nokill4
- object5.Name = 'REMOTE4'
- block:SetNetworkOwner(owner)
- block2:SetNetworkOwner(owner)
- block3:SetNetworkOwner(owner)
- block4:SetNetworkOwner(owner)
- block5:SetNetworkOwner(owner)
- NLS([[
- local count = 0
- canjump = false
- walking = false
- jumping = false
- count2 = 0
- local Speed = 0
- local rotspeed = 0
- local mouse = owner:GetMouse()
- local uis = game:GetService("UserInputService")
- local block = owner.PlayerGui.BLOCK.Value
- local remote = owner.PlayerGui.REMOTE.Value
- local remote2 = owner.PlayerGui.REMOTE2.Value
- local remote3 = owner.PlayerGui.REMOTE3.Value
- local remote4 = owner.PlayerGui.REMOTE4.Value
- local SoundB = Instance.new("Sound",block)
- SoundB.SoundId = "rbxasset://sounds/snap.mp3"
- SoundB.Volume = 0.5
- local b2 = Instance.new("BodyGyro", block)
- b2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- local bv = Instance.new("BodyVelocity", block)
- bv.MaxForce = Vector3.new(math.huge,0,math.huge)
- mouse.Button1Down:Connect(function()
- remote:FireServer(mouse.Target)
- end)
- uis.InputBegan:Connect(function(input)
- input = input.KeyCode
- if input == Enum.KeyCode.Space then
- if canjump then
- count = count + 1
- if count == 1 then
- block.Velocity = Vector3.new(0,workspace.Gravity * block:GetMass() * 0.125,0)
- SoundB:Play()
- elseif count == 2 then
- canjump = false
- count = 0
- block.Velocity = Vector3.new(0,workspace.Gravity * block:GetMass() * 0.125,0)
- SoundB:Play()
- end
- end
- elseif input == Enum.KeyCode.E then
- count2 = count2 + 1
- if count2 == 1 then
- remote3:FireServer("light")
- elseif count2 == 2 then
- remote3:FireServer("off")
- count2 = 0
- end
- elseif input == Enum.KeyCode.Q then
- remote4:FireServer()
- end
- end)
- b2.P = 100000
- game:GetService("RunService").RenderStepped:Connect(function()
- workspace.CurrentCamera.CameraSubject = block
- bv.Velocity = Vector3.new(owner.Character.Humanoid.MoveDirection.x * 24,owner.Character.Humanoid.MoveDirection.y * 34,owner.Character.Humanoid.MoveDirection.z * 24)
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
- bv.MaxForce = Vector3.new(math.huge,0,math.huge)
- b2.CFrame = CFrame.new(block.Position,block.Position + owner.Character.Humanoid.MoveDirection)
- walking = true
- else
- walking = false
- coroutine.wrap(function()
- wait(0.0625)
- bv.MaxForce = Vector3.new(0,0,0)
- end)()
- end
- coroutine.wrap(function()
- local result = workspace:Raycast(block.Position,block.CFrame.upVector * -5)
- if result then
- canjump = true
- count = 0
- remote2:FireServer("landed")
- else
- remote2:FireServer("Jumping")
- end
- end)()
- end)
- ]], owner.PlayerGui)
- mass = 0
- db = false
- landed = true
- local TweenService = game:GetService("TweenService")
- local goal = {}
- goal.C0 = CFrame.new(-1.5, 0, -0.5) * CFrame.Angles(math.rad(35),0,0)
- local tweenInfo = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween = TweenService:Create(blockweld4, tweenInfo, goal)
- local goal2 = {}
- goal2.C0 = CFrame.new(-1.5, 0, 0.5) * CFrame.Angles(math.rad(-35),0,0)
- local tweenInfo2 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween2 = TweenService:Create(blockweld4, tweenInfo2, goal2)
- local goal3 = {}
- goal3.C0 = CFrame.new(1.5, 0, 0.5) * CFrame.Angles(math.rad(-35),0,0)
- local tweenInfo3 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween3 = TweenService:Create(blockweld3, tweenInfo3, goal3)
- local goal4 = {}
- goal4.C0 = CFrame.new(1.5, 0, -0.5) * CFrame.Angles(math.rad(35),0,0)
- local tweenInfo4 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween4 = TweenService:Create(blockweld3, tweenInfo4, goal4)
- local goal5 = {}
- goal5.C0 = CFrame.new(-0.5, -2, 0.5) * CFrame.Angles(math.rad(-35),0,0)
- local tweenInfo5 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween5 = TweenService:Create(blockweld2, tweenInfo5, goal5)
- local goal6 = {}
- goal6.C0 = CFrame.new(-0.5, -2, -0.5) * CFrame.Angles(math.rad(35),0,0)
- local tweenInfo6 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween6 = TweenService:Create(blockweld2, tweenInfo6, goal6)
- local goal7 = {}
- goal7.C0 = CFrame.new(0.5, -2, -0.5) * CFrame.Angles(math.rad(35),0,0)
- local tweenInfo7 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween7 = TweenService:Create(blockweld, tweenInfo7, goal7)
- local goal8 = {}
- goal8.C0 = CFrame.new(0.5, -2, 0.5) * CFrame.Angles(math.rad(-35),0,0)
- local tweenInfo8 = TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
- local tween8 = TweenService:Create(blockweld, tweenInfo8, goal8)
- local SoundA = Instance.new("Sound",block)
- SoundA.SoundId = "rbxasset://sounds/bass.mp3"
- SoundA.Volume = 0.35
- local Light = Instance.new("Sound",block10)
- Light.SoundId = "rbxassetid://577891804"
- Light.Volume = 1
- nokill.OnServerEvent:Connect(function(plr,target)
- if target.Name ~= "Base" then
- if (target.Position - block.Position).magnitude <= 10 then
- if target.Parent:IsA("Model") then
- for i,v in pairs(target.Parent:GetDescendants()) do
- pcall(function()
- mass = mass + v:GetMass()
- end)
- end
- target.Velocity = block.CFrame.lookVector * mass * 0.5 + block.CFrame.upVector * mass * 0.5
- SoundA.PlaybackSpeed = 2.5 + math.random(0,3.5)
- SoundA:Play()
- mass = 0
- else
- for i,v in pairs(target:GetDescendants()) do
- pcall(function()
- mass = mass + v:GetMass()
- end)
- end
- target.Velocity = block.CFrame.lookVector * mass * 0.5 + block.CFrame.upVector * mass * 0.5
- SoundA.PlaybackSpeed = 2.5 + math.random(0,3.5)
- SoundA:Play()
- mass = 0
- end
- end
- end
- end)
- nokill2.OnServerEvent:Connect(function(plr,action)
- if action == "landed" then
- landed = true
- if not db then
- db = true
- blockweld3.C0 = CFrame.new(1.5, 0,0) * CFrame.Angles(math.rad(0),0,0)
- blockweld4.C0 = CFrame.new(-1.5, 0,0) * CFrame.Angles(math.rad(0),0,0)
- end
- elseif action == "Jumping" then
- landed = false
- blockweld3.C0 = CFrame.new(1.5, 1.25, 0) * CFrame.Angles(math.rad(180),0,0)
- blockweld4.C0 = CFrame.new(-1.5, 1.25, 0) * CFrame.Angles(math.rad(180),0,0)
- blockweld.C0 = CFrame.new(0.5, -2, 0)
- blockweld2.C0 = CFrame.new(-0.5, -2, 0)
- db = false
- end
- end)
- nokill4.OnServerEvent:Connect(function()
- landed = false
- blockweld3.C0 = CFrame.new(1.5, 1, 0) * CFrame.Angles(math.rad(180),0,0) * CFrame.Angles(0,0,math.rad(0))
- wait(0.125)
- blockweld3.C0 = CFrame.new(1.75, 1, 0) * CFrame.Angles(math.rad(180),0,0) * CFrame.Angles(0,0,math.rad(35))
- wait(0.125)
- blockweld3.C0 = CFrame.new(1.5, 1,0) * CFrame.Angles(math.rad(180),0,0) * CFrame.Angles(0,0,math.rad(0))
- wait(0.125)
- blockweld3.C0 = CFrame.new(1.25, 1, 0) * CFrame.Angles(math.rad(180),0,0) * CFrame.Angles(0,0,math.rad(-35))
- wait(0.125)
- blockweld3.C0 = CFrame.new(1.5, 0,0) * CFrame.Angles(math.rad(0),0,0) * CFrame.Angles(0,0,math.rad(0))
- landed = true
- end)
- local flash
- nokill3.OnServerEvent:Connect(function(plr,action)
- Light:Play()
- if action == "light" then
- flash = Instance.new("SpotLight", block11)
- flash.Brightness = 7
- flash.Range = 10
- flash.Shadows = true
- flash.Face = "Front"
- flash.Angle = 75
- block11.Color = Color3.fromRGB(255, 200, 0)
- elseif action == "off" then
- flash:Destroy()
- block11.Color = Color3.fromHSV(0,0,0.5)
- end
- end)
- local tweenService = game:GetService("TweenService")
- local timeToFade9 = 0.5
- local object9 = block7
- local tweenInfo9 = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,1)
- local goal9 = {}
- goal9.Size = Vector3.new(0.125,0.125,0.5)
- local tween9 = tweenService:Create(object9, tweenInfo9, goal9)
- local tween10 = tweenService:Create(block8, tweenInfo9, goal9)
- coroutine.wrap(function()
- while true do
- task.wait()
- pcall(function()
- blockweld.Parent = block
- blockweld2.Parent = block
- blockweld3.Parent = block
- blockweld4.Parent = block
- blockweld69.Parent = block
- ShootWeld.Parent = block6
- ShootWeld2.Parent = block6
- ShootWeld3.Parent = block6
- ShootWeld4.Parent = block6
- ShootWeld5.Parent = block10
- end)
- if landed then
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
- tween:Play()
- tween3:Play()
- tween5:Play()
- tween7:Play()
- wait(0.25)
- SoundA.PlaybackSpeed = 5 + math.random(0,3.5)
- SoundA:Play()
- coroutine.wrap(function()
- local result = workspace:Raycast(block2.Position,block2.CFrame.upVector * -5)
- if result then
- local step = Instance.new("SpawnLocation",workspace)
- step.Enabled = false
- step.CanQuery = false
- step.CanCollide = false
- step.CanTouch = false
- step.Anchored = true
- step.Size = Vector3.new(1,0.125,1)
- step.Material = "SmoothPlastic"
- step.Color = result.Instance.Color
- local currentRightVector = block2.CFrame.RightVector
- local upVector = result.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- step.CFrame = CFrame.fromMatrix(block2.Position, currentRightVector, upVector, newFacialVector)
- step.Position = result.Position + Vector3.new(0,0.0625,0)
- game:GetService("Debris"):AddItem(step,10)
- end
- end)()
- tween2:Play()
- tween4:Play()
- tween6:Play()
- tween8:Play()
- wait(0.25)
- SoundA.PlaybackSpeed = 5 + math.random(0,3.5)
- SoundA:Play()
- coroutine.wrap(function()
- local result = workspace:Raycast(block3.Position,block3.CFrame.upVector * -5)
- if result then
- local step = Instance.new("SpawnLocation",workspace)
- step.Enabled = false
- step.CanQuery = false
- step.CanCollide = false
- step.CanTouch = false
- step.Anchored = true
- step.Size = Vector3.new(1,0.125,1)
- step.Material = "SmoothPlastic"
- step.Color = result.Instance.Color
- local currentRightVector = block3.CFrame.RightVector
- local upVector = result.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- step.CFrame = CFrame.fromMatrix(block3.Position, currentRightVector, upVector, newFacialVector)
- step.Position = result.Position + Vector3.new(0,0.0625,0)
- game:GetService("Debris"):AddItem(step,10)
- end
- end)()
- end
- end
- end
- end)()
- while true do
- wait(1)
- tween9:Play()
- tween10:Play()
- wait(1)
- end
Add Comment
Please, Sign In to add comment