Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debris = game:service("Debris")
- Go = script.Parent.Parent.Kick
- Go1 = script.Parent.Parent.BKick
- Kick = false
- Go.Value = 0
- Go1.Value = 0
- script.Parent.Selected:connect(function(m)
- m.KeyDown:connect(function(key)
- if key:lower() == "f" then
- if Go.Value == 1 then return end
- if Go1.Value == 1 then return end
- Go.Value = 1
- if script.Parent.Parent.Parent.Character == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Head") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Torso") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Right Leg") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Left Leg") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Right Arm") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Left Arm") == nil then return end
- Torso = script.Parent.Parent.Parent.Character.Torso
- RL = script.Parent.Parent.Parent.Character["Right Leg"]
- LA = script.Parent.Parent.Parent.Character["Left Arm"]
- RA = script.Parent.Parent.Parent.Character["Right Arm"]
- Hip = Torso["Right Hip"]
- HipUpdate(Hip, nil)
- CreateWeld("W", RL, Torso, RL)
- UpdateWeldC0("W", RL, CFrame.new(0.5,-1.5,1) * CFrame.fromEulerAnglesXYZ(-math.pi/4,-0.5,0))
- script.Parent.Parent.Speed.Value = "54"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1000, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.Visible = true
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 20, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "59"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1200, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 40, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "64"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1400, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 60, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "64"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1600, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 80, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "69"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1800, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 100, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "79"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 2000, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 120, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "84"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 2500, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 150, 0, 8)
- end
- end)
- end)
- script.Parent.Selected:connect(function(m)
- m.KeyUp:connect(function(key)
- if key:lower() == "f" then
- if Go1.Value == 1 then return end
- Go1.Value = 1
- if script.Parent.Parent.Parent.Character == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Torso") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Right Leg") == nil then return end
- Kick = true
- LH = script.Parent.Parent.Parent.Character.Torso["Left Hip"]
- RH = script.Parent.Parent.Parent.Character.Torso["Right Hip"]
- LH.MaxVelocity = "0.1"
- RH.MaxVelocity = "0.1"
- script.Parent.Parent.Parent.Character.Torso.Friction = "1"
- UpdateWeldC0("W", RL, CFrame.new(0.5,-1.5,-1) * CFrame.fromEulerAnglesXYZ(math.pi/6,0,0))
- RL.Touched:connect(function(hit)
- if Kick == false then return end
- if hit.Locked == true or hit.Anchored == true then return end
- Kick = false
- F = Instance.new("BodyVelocity")
- F.Parent = hit
- OwnershipChange(hit)
- F.velocity = RL.CFrame.lookVector * script.Parent.Parent.Speed.Value
- F.maxForce = (script.Parent.Parent.Angle.Value)
- debris:AddItem(F,0.3)
- wait()
- AV = Instance.new("BodyForce")
- AV.Parent = hit
- AV.Force = (Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector*(100+script.Parent.Parent.Speed.Value)
- debris:AddItem(AV,2)
- end)
- wait(0.7)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.Visible = false
- script.Parent.Parent.Speed.Value = "0"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 300, 4.0000e+006)
- Kick = false
- RemoveWeld("W", RL)
- HipUpdate(Hip, RL)
- wait(0.2)
- Go.Value = 0
- Go1.Value = 0
- end
- end)
- end)
- script.Parent.Selected:connect(function(m)
- m.KeyDown:connect(function(key)
- if key:lower() == "f" then
- if Go.Value == 1 then return end
- if Go1.Value == 1 then return end
- Go.Value = 1
- if script.Parent.Parent.Parent.Character == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Head") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Torso") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Right Leg") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Left Leg") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Right Arm") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Left Arm") == nil then return end
- Torso = script.Parent.Parent.Parent.Character.Torso
- RL = script.Parent.Parent.Parent.Character["Left Leg"]
- LA = script.Parent.Parent.Parent.Character["Left Arm"]
- RA = script.Parent.Parent.Parent.Character["Right Arm"]
- Hip = Torso["Right Hip"]
- HipUpdate(Hip, nil)
- CreateWeld("W", RL, Torso, RL)
- UpdateWeldC0("W", RL, CFrame.new(0.5,-1.5,1) * CFrame.fromEulerAnglesXYZ(-math.pi/4,-0.5,0))
- script.Parent.Parent.Speed.Value = "60"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1000, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.Visible = true
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 20, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "60"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1200, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 40, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "65"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1400, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 60, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "65"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1600, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 80, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "70"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 1800, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 100, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "80"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 2000, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 120, 0, 8)
- wait(0.1)
- if Go1.Value == 1 then return end
- script.Parent.Parent.Speed.Value = "85"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 2500, 4.0000e+006)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.PB.Size = UDim2.new(-1, 150, 0, 8)
- end
- end)
- end)
- script.Parent.Selected:connect(function(m)
- m.KeyUp:connect(function(key)
- if key:lower() == "f" then
- if Go1.Value == 1 then return end
- Go1.Value = 1
- if script.Parent.Parent.Parent.Character == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Torso") == nil then return end
- if script.Parent.Parent.Parent.Character:findFirstChild("Right Leg") == nil then return end
- Kick = true
- LH = script.Parent.Parent.Parent.Character.Torso["Left Hip"]
- RH = script.Parent.Parent.Parent.Character.Torso["Right Hip"]
- LH.MaxVelocity = "0.1"
- RH.MaxVelocity = "0.1"
- script.Parent.Parent.Parent.Character.Torso.Friction = "1"
- UpdateWeldC0("W", RL, CFrame.new(0.5,-1.5,-1) * CFrame.fromEulerAnglesXYZ(math.pi/6,0,0))
- RL.Touched:connect(function(hit)
- if Kick == false then return end
- if hit.Locked == true or hit.Anchored == true then return end
- Kick = false
- F = Instance.new("BodyVelocity")
- F.Parent = hit
- OwnershipChange(hit)
- F.velocity = RL.CFrame.lookVector * script.Parent.Parent.Speed.Value
- F.maxForce = (script.Parent.Parent.Angle.Value)
- debris:AddItem(F,0.3)
- wait()
- AV = Instance.new("BodyForce")
- AV.Parent = hit
- AV.Force = (Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)).lookVector*(100+script.Parent.Parent.Speed.Value)
- debris:AddItem(AV,2)
- end)
- wait(0.7)
- script.Parent.Parent.Parent.PlayerGui.Start.PowerBar.Visible = false
- script.Parent.Parent.Speed.Value = "0"
- script.Parent.Parent.Angle.Value = Vector3.new(4.0000e+006, 300, 4.0000e+006)
- Kick = false
- RemoveWeld("W", RL)
- HipUpdate(Hip, RL)
- wait(0.2)
- Go.Value = 0
- Go1.Value = 0
- end
- end)
- end)
- function CreateWeld(name, parent, part0, part1)
- game:GetService("ReplicatedStorage").Events.CreateWeld:FireServer(name, parent, part0, part1)
- local W = Instance.new("Weld")
- W.Name = name
- W.Parent = parent
- W.Part0 = part0
- W.Part1 = part1
- end
- ---
- function UpdateWeldC0(weldname, parent, c0)
- game:GetService("ReplicatedStorage").Events.UpdateWeld:FireServer(weldname, parent, c0)
- parent:FindFirstChild(weldname).C0 = c0
- end
- ---
- function RemoveWeld(name, parent)
- game:GetService("ReplicatedStorage").Events.RemoveWeld:FireServer(name, parent)
- for _,v in pairs (parent:GetChildren()) do
- if v:IsA("Weld") and v.Name == name then
- v:remove()
- end
- end
- end
- ---
- function HipUpdate(hip, part1)
- game:GetService("ReplicatedStorage").Events.UpdateHips:FireServer(hip, part1)
- hip.Part1 = part1
- end
- ---
- function Anchor(part, anchor_option)
- game:GetService("ReplicatedStorage").Events.Anchor:FireServer(part, anchor_option)
- part.Anchored = anchor_option
- end
- ---
- function Platform(part, anchor2_option)
- game:GetService("ReplicatedStorage").Events.Platform:FireServer(part, anchor2_option)
- part.PlatformStand = anchor2_option
- end
- ---
- function CFrameTorso(torso1, cframe_value)
- game:GetService("ReplicatedStorage").Events.TorsoCFrame:FireServer(torso1, cframe_value)
- torso1.CFrame = cframe_value
- end
- ---
- function FE_Attach(name, part0, part1, ball, c0, c1)
- game:GetService("ReplicatedStorage").Events.Attach:FireServer(name, part0, part1, ball, c0, c1)
- local W = Instance.new("Weld")
- W.Name = "Keep"
- W.Part0 = part0
- W.Part1 = part1
- W.Parent = part0
- W.C0 = c0
- W.C1 = c1
- end
- ---
- function ballPosChange(ball, newPos)
- game:GetService("ReplicatedStorage").Events.BallPosChange:FireServer(ball, newPos)
- ball.Position = newPos
- end
- ---
- function OwnershipChange(ball)
- game:GetService("ReplicatedStorage").Events.NetworkOwnership:FireServer(ball)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement