Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SM = require(script.Parent.Parent:WaitForChild("SharedMechanics"))
- local UIService = game:GetService("UserInputService")
- local communication = game.ReplicatedStorage:WaitForChild("Communication")
- -- player variables
- local player = game.Players.LocalPlayer
- local character = player.Character
- if not character or not character.Parent then
- character = player.CharacterAdded:wait()
- end
- local Torso = character:WaitForChild("Torso")
- local RL = character:WaitForChild("Right Leg")
- local LL = character:WaitForChild("Left Leg")
- local debris = game:service("Debris")
- local maxF = Vector3.new(math.huge,math.huge,math.huge)
- plr = game.Players.LocalPlayer
- 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 == script.key.Value:lower() then
- maxF = Vector3.new(3e+005,2e+003,3e+005)
- Go = 1
- SM.editLimbs("Left Arm", CFrame.new(-1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(-math.pi/1, -4, -4))
- SM.editLimbs("Right Arm", CFrame.new(1.5, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(-math.pi/1, -4, 4))
- SM.editLimbs("Right Leg", CFrame.new(0.5, -1.75, 0.25) * CFrame.fromEulerAnglesXYZ(-math.rad(10), 0, 0))
- wait(0.01)
- SM.editLimbs("Right Leg", CFrame.new(0.5, -1.5, 0.5) * CFrame.fromEulerAnglesXYZ(-math.rad(50), -math.rad(85), 0))
- wait(.6)
- SM.editLimbs("Right Leg", CFrame.new(0.7,-1.8,0.5) * CFrame.fromEulerAnglesXYZ(math.pi/-3,-1.5,-0.7))
- RL.Touched:connect(function(hit)
- if Kick == false then return end
- if hit.Locked == true or hit.Anchored == true then return end
- if (RL.Position - hit.Position).magnitude > 3 then return end
- Kick = false
- SM.applyForce(28, hit, RL, maxF)
- end)
- for i, v in pairs(RL:GetTouchingParts()) do
- if Kick == true and v.Locked == false and v.Anchored == false and (RL.Position - v.Position).magnitude < 3 then
- Kick = false
- SM.applyForce(28, v, RL, maxF)
- end
- end
- wait(0.5)
- Kick = false
- SM.resetWelds()
- wait(0.2)
- Go = 0
- end
- end
- end
- bin.Unequipped:connect(function()
- end)
- function onSelected(mouse)
- mouse.KeyDown:connect(onKeyDown)
- end
- bin.Equipped:connect(onSelected)
- function ChangeOwner(ball)
- game.ReplicatedStorage.ChangeOwner:FireServer(ball)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement