Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --So i saw a guy exploiting with a lvl 7 exploit and i saw a bat, so i decided to make my own baseball bat remake script
- mouse = game.Players.LocalPlayer:GetMouse()
- using = false
- attack = false
- bat = Instance.new("Part", game.Players.LocalPlayer.Character)
- bat.Size = Vector3.new(1, 1, 5)
- bat.CanCollide = false
- bat:BreakJoints()
- baseballhit = Instance.new("Sound", bat)
- baseballhit.Volume = 10
- baseballhit.SoundId = "rbxassetid://476177883"
- swinging = Instance.new("Sound", bat)
- swinging.Volume = 10
- swinging.PlaybackSpeed = 1.2
- swinging.SoundId = "rbxassetid://476177883"
- weld = Instance.new("Weld", bat)
- weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.Part1 = bat
- weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
- mesh = Instance.new("SpecialMesh", bat)
- mesh.MeshId = "http://www.roblox.com/asset/?id=54983181"
- mesh.TextureId = "http://www.roblox.com/asset/?id=54983107"
- mesh.Scale = Vector3.new(2,2,2)
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
- lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- for i = 1,20 do
- wait()
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.09)
- lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.12)
- rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.13)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
- end
- for i = 1,20 do
- wait()
- lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.08,0,0) * CFrame.new(0,-0.1,0)
- end
- function swing(key)
- key = key:lower()
- if key == "e" then
- if not using then
- using = true
- local detect = Instance.new("Part", bat)
- detect.Size = Vector3.new(1,1,4.5)
- detect:BreakJoints()
- detect.CanCollide = false
- detect.Transparency = 1
- local welding = Instance.new("Weld", detect)
- welding.Part0 = bat
- welding.Part1 = detect
- local function rip(part)
- if not attack then
- attack = true
- local humanoid = part.Parent:findFirstChild("Humanoid")
- root = part.Parent:findFirstChild("HumanoidRootPart")
- local joint = root:findFirstChild("RootJoint")
- local torso = part.Parent:findFirstChild("Torso")
- local head = part.Parent:findFirstChild("Head")
- if head ~= nil then
- if torso ~= nil then
- if humanoid ~= nil then
- if root ~= nil then
- if joint ~= nil then
- baseballhit:Play()
- head.Died.Volume = 90
- head.Died:Play()
- humanoid.WalkSpeed = 69
- humanoid.JumpPower = 66
- for i = 1,15 do
- wait(0.02)
- torso["Right Shoulder"].C1 = torso["Right Shoulder"].C1 * CFrame.Angles(0.06,0,0)
- torso["Left Shoulder"].C1 = torso["Left Shoulder"].C1 * CFrame.Angles(0.03,0,0)
- joint.C1 = joint.C1 * CFrame.Angles(-0.11,0,0)
- joint.C1 = joint.C1 * CFrame.new(0,0.4,0)
- torso["Left Hip"].C1 = torso["Left Hip"].C1 * CFrame.Angles(0.01,0,0)
- torso["Right Hip"].C1 = torso["Right Hip"].C1 * CFrame.Angles(0.005,0,0)
- end --end of anim
- wait(1.2)
- attack = false
- torso.Anchored = true
- end --end of joint nil
- end -- end of root nil
- end -- end of humanoid nil
- end -- end of torso nil
- end -- end if head nil
- end -- end of not attacked
- end -- end of function (rip)
- detect.Touched:connect(rip)
- for i = 1,7 do
- wait()
- rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.3)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.5)
- end
- detect:destroy()
- for i = 1,7 do
- wait()
- rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.3)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.5)
- end
- using = false
- end --end of is not using then
- end --end of if key
- end --end of swing function
- mouse.KeyDown:connect(swing)
Add Comment
Please, Sign In to add comment