Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debris = game:service("Debris")
- bin = script.Parent
- Go = 0
- Kick = false
- function onKeyDown(key)
- if Go == 1 then return end
- if key ~= nil then
- key = key:lower()
- if key == "e" then
- Go = 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
- if script.Parent.Parent.Parent.Character:findFirstChild("Left Leg") == nil then return end
- Torso = script.Parent.Parent.Parent.Character.Torso
- RL = script.Parent.Parent.Parent.Character["Right Leg"]
- LL = script.Parent.Parent.Parent.Character["Left Leg"]
- Hip = Torso["Right Hip"]
- Hip1 = Torso["Left Hip"]
- Hip.Part1 = nil
- Hip1.Part1 = nil
- W = Instance.new("Weld")
- W.Parent = RL
- W.Part0 = Torso
- W.Part1 = RL
- ServerWeldInstance(RL, Torso, RL)
- R = Instance.new("Weld")
- R.Parent = LL
- R.Part0 = Torso
- R.Part1 = LL
- ServerWeldInstance(LL, Torso, LL)
- Kick = true
- W.C0 = CFrame.new(0.8,-1.3,-1.5) * CFrame.fromEulerAnglesXYZ(math.pi/2.5,-0.3,0.2)
- ServerWeld(RL, CFrame.new(0.8,-1.3,-1.5) * CFrame.fromEulerAnglesXYZ(math.pi/2.5,-0.3,0.2))
- R.C0 = CFrame.new(-0.8,-1.8,0.8) * CFrame.fromEulerAnglesXYZ(-math.pi/5,0.5,-0.3)
- ServerWeld(LL, CFrame.new(0.8,-1.8,-0.8) * CFrame.fromEulerAnglesXYZ(math.pi/5,0.5,-0.3))
- wait(0.1)
- W.C0 = CFrame.new(0.8,-1.5,-1.3) * CFrame.fromEulerAnglesXYZ(math.pi/3,-0.5,0.2)
- ServerWeld(RL, CFrame.new(0.8,-1.5,-1.3) * CFrame.fromEulerAnglesXYZ(math.pi/3,-0.5,0.2))
- wait(0.1)
- R.C0 = CFrame.new(-0.9,-1.8,1) * CFrame.fromEulerAnglesXYZ(-math.pi/4,0.5,-0.3)
- ServerWeld(LL, CFrame.new(0.9,-1.8,1) * CFrame.fromEulerAnglesXYZ(math.pi/4,0.5,-0.3))
- 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
- F.velocity = RL.CFrame.lookVector * 85
- F.maxForce = Vector3.new(4e+006,0,4e+006)
- debris:AddItem(F,0.3)
- end)
- wait(0.3)
- Kick = false
- W:Remove()
- ServerWeldRemoval(RL)
- R:Remove()
- ServerWeldRemoval(LL)
- Hip.Part1 = RL
- UpdateHips(Hip, RL)
- Hip1.Part1 = LL
- UpdateHips(Hip1, LL)
- wait(0.2)
- Go = 0
- end
- end
- end
- bin.Deselected:connect(function()
- end)
- function onSelected(mouse)
- mouse.KeyDown:connect(onKeyDown)
- end
- bin.Selected:connect(onSelected)
- function ServerWeld(weld, cframe)
- game:GetService("ReplicatedStorage").RemoteEvents.WeldUpdates:FireServer(weld, cframe)
- end
- ---------------------------------
- function ServerWeldInstance(weldparent, weldpart0, weldpart1)
- game:GetService("ReplicatedStorage").RemoteEvents.WeldInstanceUpdate:FireServer(weldparent, weldpart0, weldpart1)
- end
- ---------------------------------
- function ServerWeldRemoval(weldname)
- game:GetService("ReplicatedStorage").RemoteEvents.WeldRemoval:FireServer(weldname)
- end
- ---------------------------------
- function UpdateHips(hip, part1)
- game:GetService("ReplicatedStorage").RemoteEvents.UpdateHips:FireServer(hip, part1)
- 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 OwnershipChange(ball)
- game:GetService("ReplicatedStorage").Events.NetworkOwnership:FireServer(ball)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement