SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local model = Instance.new("Model", script)
|
| 1 | + | |
| 2 | - | model.Name = owner.Name |
| 2 | + | local power = 1 |
| 3 | - | hum = Instance.new("Humanoid", model)
|
| 3 | + | owner.Chatted:Connect(function(msg) |
| 4 | - | hum.MaxHealth = 0 |
| 4 | + | if msg:sub(1,7) == "-power " then |
| 5 | - | hum.Health = 0 |
| 5 | + | power = msg:sub(7,#msg) |
| 6 | - | local block = Instance.new("Part", model)
|
| 6 | + | |
| 7 | - | block.Size = Vector3.new(1.5,1.4,1.75) |
| 7 | + | |
| 8 | - | block.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
|
| 8 | + | local donthit = {}
|
| 9 | - | block.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) |
| 9 | + | for i,v in pairs(owner.Character:GetDescendants()) do |
| 10 | - | block.Material = 'SmoothPlastic' |
| 10 | + | |
| 11 | - | block.Name = "Head" |
| 11 | + | table.insert(donthit,v) |
| 12 | - | local nokill = Instance.new("RemoteEvent", block)
|
| 12 | + | |
| 13 | - | nokill.Name = "The" |
| 13 | + | |
| 14 | - | block.Locked = true |
| 14 | + | for i,v in pairs(workspace:GetDescendants()) do |
| 15 | - | local block2 = Instance.new("Part", block)
|
| 15 | + | |
| 16 | - | block2.Size = Vector3.new(1.5,0.1,1.75) |
| 16 | + | if v.CanCollide == false then |
| 17 | - | block2.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
|
| 17 | + | table.insert(donthit,v) |
| 18 | - | block2.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) |
| 18 | + | |
| 19 | - | block2.Material = 'SmoothPlastic' |
| 19 | + | |
| 20 | - | ShootWeld = Instance.new("Weld", block)
|
| 20 | + | |
| 21 | - | ShootWeld.Part0 = block2 |
| 21 | + | |
| 22 | - | ShootWeld.Part1 = block |
| 22 | + | |
| 23 | - | ShootWeld.C0 = CFrame.new(0,0.75,0) |
| 23 | + | speed2 = 16 |
| 24 | - | local nokill2 = Instance.new("RemoteEvent", block2)
|
| 24 | + | |
| 25 | - | block2.Locked = true |
| 25 | + | |
| 26 | - | local block3 = Instance.new("Part", block)
|
| 26 | + | |
| 27 | - | block3.Size = Vector3.new(0.25,1.125,0.5) |
| 27 | + | |
| 28 | - | block3.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
|
| 28 | + | local animationTrack = owner.Character.Humanoid:LoadAnimation(owner.Character.Animate.walk.WalkAnim) |
| 29 | - | block3.Color = Color3.fromHSV(0,0,0) |
| 29 | + | animationTrack.Looped = true |
| 30 | - | block3.Material = 'SmoothPlastic' |
| 30 | + | animationTrack.Priority = Enum.AnimationPriority.Movement |
| 31 | - | ShootWeld2 = Instance.new("Weld", block)
|
| 31 | + | local animationTrack3 = owner.Character.Humanoid:LoadAnimation(owner.Character.Animate.jump.JumpAnim) |
| 32 | - | ShootWeld2.Part0 = block3 |
| 32 | + | animationTrack3.Priority = Enum.AnimationPriority.Movement |
| 33 | - | ShootWeld2.Part1 = block |
| 33 | + | LastAttack = 0 |
| 34 | - | ShootWeld2.C0 = CFrame.new(0.5625,-0.0625,0.725) |
| 34 | + | |
| 35 | - | local nokill3 = Instance.new("RemoteEvent", block3)
|
| 35 | + | |
| 36 | - | block3.Locked = true |
| 36 | + | |
| 37 | - | block3.CanCollide = false |
| 37 | + | |
| 38 | - | local block4 = Instance.new("Part", block)
|
| 38 | + | animationTrack:Play() |
| 39 | - | block4.Size = Vector3.new(0.25,1.125,0.5) |
| 39 | + | local Tick = game:GetService("RunService").Stepped:wait()
|
| 40 | - | block4.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
|
| 40 | + | if (Tick - LastAttack) < 1.5 then |
| 41 | - | block4.Color = Color3.fromHSV(0,0,0) |
| 41 | + | speed2 = 20 |
| 42 | - | block4.Material = 'SmoothPlastic' |
| 42 | + | else |
| 43 | - | ShootWeld3 = Instance.new("Weld", block)
|
| 43 | + | speed2 = 16 |
| 44 | - | ShootWeld3.Part0 = block4 |
| 44 | + | |
| 45 | - | ShootWeld3.Part1 = block |
| 45 | + | LastAttack = Tick |
| 46 | - | ShootWeld3.C0 = CFrame.new(-0.5625,-0.0625,0.725) |
| 46 | + | for i,v in pairs(owner.Character:GetDescendants()) do |
| 47 | - | local nokill4 = Instance.new("RemoteEvent", block4)
|
| 47 | + | |
| 48 | - | block4.Locked = true |
| 48 | + | if v.Name ~= "HumanoidRootPart" then |
| 49 | - | block4.CanCollide = false |
| 49 | + | local density = 0 |
| 50 | - | local block5 = Instance.new("Part", block)
|
| 50 | + | local friction = 0 |
| 51 | - | block5.Size = Vector3.new(1.5,1.4,0.5) |
| 51 | + | |
| 52 | - | block5.CFrame = owner.Character:FindFirstChildWhichIsA("BasePart").CFrame
|
| 52 | + | |
| 53 | - | block5.Color = Color3.fromHSV(0,0,0) |
| 53 | + | |
| 54 | - | block5.Material = 'SmoothPlastic' |
| 54 | + | |
| 55 | - | ShootWeld4 = Instance.new("Weld", block)
|
| 55 | + | v.CustomPhysicalProperties = physProperties |
| 56 | - | ShootWeld4.Part0 = block5 |
| 56 | + | |
| 57 | - | ShootWeld4.Part1 = block |
| 57 | + | |
| 58 | - | ShootWeld4.C0 = CFrame.new(0.125,0,0.675) * CFrame.Angles(0,0,math.rad(-90)) |
| 58 | + | |
| 59 | - | local nokill5 = Instance.new("RemoteEvent", block5)
|
| 59 | + | |
| 60 | - | block5.Locked = true |
| 60 | + | |
| 61 | - | block5.CanCollide = false |
| 61 | + | |
| 62 | - | block5.Transparency = 1 |
| 62 | + | |
| 63 | - | owner.Character.Parent = nil |
| 63 | + | |
| 64 | - | local object = Instance.new("ObjectValue", owner.PlayerGui)
|
| 64 | + | animationTrack:Play() |
| 65 | - | object.Value = block |
| 65 | + | for i,v in pairs(owner.Character:GetDescendants()) do |
| 66 | - | object.Name = 'BLOCK' |
| 66 | + | |
| 67 | - | local object2 = Instance.new("ObjectValue", owner.PlayerGui)
|
| 67 | + | if v.Name ~= "HumanoidRootPart" then |
| 68 | - | object2.Value = model |
| 68 | + | local density = 0 |
| 69 | - | object2.Name = 'MODEL' |
| 69 | + | local friction = 0 |
| 70 | - | local density = 0.0125 |
| 70 | + | |
| 71 | - | local friction = 1 |
| 71 | + | |
| 72 | local elasticityWeight = 0 | |
| 73 | local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight) | |
| 74 | v.CustomPhysicalProperties = physProperties | |
| 75 | end | |
| 76 | - | block2.CustomPhysicalProperties = physProperties |
| 76 | + | |
| 77 | - | block3.CustomPhysicalProperties = physProperties |
| 77 | + | |
| 78 | - | block4.CustomPhysicalProperties = physProperties |
| 78 | + | |
| 79 | - | block5.CustomPhysicalProperties = physProperties |
| 79 | + | |
| 80 | - | block:SetNetworkOwner(owner) |
| 80 | + | |
| 81 | - | local screengui2 = Instance.new("SurfaceGui", block5)
|
| 81 | + | |
| 82 | - | screengui2.Name = "Hud" |
| 82 | + | animationTrack3:Play() |
| 83 | - | screengui2.Face = Enum.NormalId.Front |
| 83 | + | |
| 84 | - | local tl = Instance.new("TextBox", screengui2)
|
| 84 | + | |
| 85 | - | tl.Size = UDim2.new(1, 0, 1, 0) |
| 85 | + | |
| 86 | - | tl.Text = "3" |
| 86 | + | |
| 87 | - | tl.TextSize = 400 |
| 87 | + | |
| 88 | - | tl.TextTransparency = 0 |
| 88 | + | |
| 89 | - | tl.BackgroundTransparency = 1 |
| 89 | + | |
| 90 | - | tl.Position = UDim2.new(0,0,0,0) |
| 90 | + | |
| 91 | Speed = 0 | |
| 92 | animationTrack:Stop() | |
| 93 | for i,v in pairs(owner.Character:GetDescendants()) do | |
| 94 | pcall(function() | |
| 95 | if v.Name ~= "HumanoidRootPart" then | |
| 96 | local density = 0 | |
| 97 | local friction = 0 | |
| 98 | - | local block = owner.PlayerGui.BLOCK.Value |
| 98 | + | |
| 99 | - | local model = owner.PlayerGui.MODEL.Value |
| 99 | + | |
| 100 | - | model.Name = "" |
| 100 | + | |
| 101 | - | local nokill = block:WaitForChild("The")
|
| 101 | + | |
| 102 | - | currentcf = block.CFrame |
| 102 | + | v.CustomPhysicalProperties = physProperties |
| 103 | - | |
| 103 | + | |
| 104 | end) | |
| 105 | end | |
| 106 | elseif input == Enum.KeyCode.A then | |
| 107 | rotspeed =0 | |
| 108 | - | |
| 108 | + | |
| 109 | elseif input == Enum.KeyCode.D then | |
| 110 | rotspeed =0 | |
| 111 | rotspeed2 = 0 | |
| 112 | elseif input == Enum.KeyCode.S then | |
| 113 | Speed = 0 | |
| 114 | - | |
| 114 | + | animationTrack:Stop() |
| 115 | for i,v in pairs(owner.Character:GetDescendants()) do | |
| 116 | pcall(function() | |
| 117 | if v.Name ~= "HumanoidRootPart" then | |
| 118 | local density = 0 | |
| 119 | local friction = 0 | |
| 120 | local elasticity = 0 | |
| 121 | local frictionWeight = 100000000000 | |
| 122 | local elasticityWeight = 0 | |
| 123 | local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight) | |
| 124 | - | |
| 124 | + | v.CustomPhysicalProperties = physProperties |
| 125 | end | |
| 126 | end) | |
| 127 | end | |
| 128 | end | |
| 129 | end) | |
| 130 | - | rotspeed = 0 |
| 130 | + | local jumpp = Instance.new("NumberValue")
|
| 131 | - | rotspeed2 = 1 |
| 131 | + | jumpp.Value = -15 |
| 132 | block = owner.Character.HumanoidRootPart | |
| 133 | local xzGyro = Instance.new("BodyGyro")
| |
| 134 | xzGyro.MaxTorque = Vector3.new(100000,0,100000) | |
| 135 | - | rotspeed = 0 |
| 135 | + | |
| 136 | - | rotspeed2 = 1 |
| 136 | + | |
| 137 | xzGyro.Parent = owner.Character.HumanoidRootPart | |
| 138 | game:GetService("RunService").RenderStepped:Connect(function()
| |
| 139 | - | |
| 139 | + | block.Velocity = block.CFrame.LookVector * Speed * speed2 |
| 140 | block.AssemblyAngularVelocity = block.CFrame.UpVector * rotspeed * 5 | |
| 141 | end) | |
| 142 | local bf = Instance.new("BodyForce", owner.Character.HumanoidRootPart)
| |
| 143 | local bf2 = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
| |
| 144 | - | xzGyro.Parent = block |
| 144 | + | bf2.MaxForce = Vector3.new(0,750,0) |
| 145 | - | local bf = Instance.new("BodyForce", block)
|
| 145 | + | bf2.Velocity = Vector3.new() |
| 146 | pcall(function() | |
| 147 | game:GetService("RunService").RenderStepped:Connect(function()
| |
| 148 | if jump then | |
| 149 | - | bf.Force = block.CFrame.upVector * block:GetMass() * 1 * workspace.Gravity * block:GetMass() * 1 |
| 149 | + | jumpp.Value = 15 * power |
| 150 | bf.Force = block.CFrame.upVector * workspace.Gravity * block:GetMass() * jumpp.Value | |
| 151 | - | bf.Force = block.CFrame.upVector * block:GetMass() * -1 * workspace.Gravity * block:GetMass() * 1 |
| 151 | + | |
| 152 | local tweenService = game:GetService("TweenService")
| |
| 153 | local timeToFade = .125 | |
| 154 | - | params.FilterDescendantsInstances = {block, owner.Character}
|
| 154 | + | local object = jumpp |
| 155 | local tweenInfo = TweenInfo.new(timeToFade) | |
| 156 | - | local result = workspace:Raycast(block.Position, block.CFrame.upVector * -1 + block.CFrame.lookVector * 1.75, params) |
| 156 | + | |
| 157 | - | local result2 = workspace:Raycast(block.Position, block.CFrame.upVector * 1 + block.CFrame.lookVector * 1.75, params) |
| 157 | + | goal.Value = -30 * power |
| 158 | - | local result3 = workspace:Raycast(block.Position, block.CFrame.upVector * 1, params) |
| 158 | + | |
| 159 | - | local result4 = workspace:Raycast(block.Position, block.CFrame.upVector * -1 + block.CFrame.lookVector * -1.75, params) |
| 159 | + | |
| 160 | - | local result5 = workspace:Raycast(block.Position, block.CFrame.upVector * 1 + block.CFrame.lookVector * -1.75, params) |
| 160 | + | bf.Force = block.CFrame.upVector * workspace.Gravity * block:GetMass() * jumpp.Value |
| 161 | - | local result6 = workspace:Raycast(block.Position, block.CFrame.upVector * -1, params) |
| 161 | + | |
| 162 | local params = RaycastParams.new() | |
| 163 | params.FilterDescendantsInstances = {block, owner.Character,donthit}
| |
| 164 | params.FilterType = Enum.RaycastFilterType.Blacklist | |
| 165 | local result = workspace:Raycast(block.Position, block.CFrame.upVector * -10 + block.CFrame.lookVector * 5, params) | |
| 166 | local result2 = workspace:Raycast(block.Position, block.CFrame.upVector * 10 + block.CFrame.lookVector * 5, params) | |
| 167 | local result3 = workspace:Raycast(block.Position, block.CFrame.upVector * 10, params) | |
| 168 | local result4 = workspace:Raycast(block.Position, block.CFrame.upVector * -10 + block.CFrame.lookVector * -5, params) | |
| 169 | local result5 = workspace:Raycast(block.Position, block.CFrame.upVector * 10 + block.CFrame.lookVector * -5, params) | |
| 170 | local result6 = workspace:Raycast(block.Position, block.CFrame.upVector * -10, params) | |
| 171 | ||
| 172 | if (result) then | |
| 173 | local currentRightVector = block.CFrame.RightVector | |
| 174 | local upVector = result.Normal | |
| 175 | local newFacialVector = currentRightVector:Cross(upVector) | |
| 176 | xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector) | |
| 177 | elseif (result2) then | |
| 178 | local currentRightVector = block.CFrame.RightVector | |
| 179 | local upVector = result2.Normal | |
| 180 | local newFacialVector = currentRightVector:Cross(upVector) | |
| 181 | xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector) | |
| 182 | elseif (result3) then | |
| 183 | local currentRightVector = block.CFrame.RightVector | |
| 184 | local upVector = result3.Normal | |
| 185 | local newFacialVector = currentRightVector:Cross(upVector) | |
| 186 | xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector) | |
| 187 | elseif (result4) then | |
| 188 | local currentRightVector = block.CFrame.RightVector | |
| 189 | local upVector = result4.Normal | |
| 190 | local newFacialVector = currentRightVector:Cross(upVector) | |
| 191 | xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector) | |
| 192 | elseif (result5) then | |
| 193 | local currentRightVector = block.CFrame.RightVector | |
| 194 | local upVector = result5.Normal | |
| 195 | local newFacialVector = currentRightVector:Cross(upVector) | |
| 196 | xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector) | |
| 197 | elseif (result6) then | |
| 198 | - | workspace.CurrentCamera.CFrame = block.CFrame * CFrame.new(0,4,6) * CFrame.Angles(math.rad(-15), 0, 0) |
| 198 | + | |
| 199 | - | block.Velocity = block.CFrame.LookVector * Speed * 30 |
| 199 | + | |
| 200 | - | block.AssemblyAngularVelocity = block.CFrame.upVector * rotspeed * 5 |
| 200 | + | |
| 201 | xzGyro.CFrame = CFrame.fromMatrix(block.Position, currentRightVector, upVector, newFacialVector) | |
| 202 | - | ]], owner.PlayerGui) |
| 202 | + | |
| 203 | - | local density = 1 |
| 203 | + | |
| 204 | - | local friction = 1 |
| 204 | + | |
| 205 | end) | |
| 206 | owner.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Physics) | |
| 207 | ]], owner.PlayerGui) |