Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- OBLIVION
- Player = game.Players.LocalPlayer
- Char = Player.Character
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- LocalScript1 = Instance.new("LocalScript")
- Script2 = Instance.new("Script")
- Script3 = Instance.new("Script")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Script6 = Instance.new("Script")
- Script7 = Instance.new("Script")
- Sound8 = Instance.new("Sound")
- Part9 = Instance.new("Part")
- CylinderMesh10 = Instance.new("CylinderMesh")
- Script11 = Instance.new("Script")
- Part12 = Instance.new("Part")
- SpecialMesh13 = Instance.new("SpecialMesh")
- Part14 = Instance.new("Part")
- Sound15 = Instance.new("Sound")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Script17 = Instance.new("Script")
- Script18 = Instance.new("Script")
- Part19 = Instance.new("Part")
- SpecialMesh20 = Instance.new("SpecialMesh")
- Script21 = Instance.new("Script")
- Script22 = Instance.new("Script")
- Sound23 = Instance.new("Sound")
- Part24 = Instance.new("Part")
- SpecialMesh25 = Instance.new("SpecialMesh")
- Script26 = Instance.new("Script")
- Script27 = Instance.new("Script")
- Sound28 = Instance.new("Sound")
- Part29 = Instance.new("Part")
- SpecialMesh30 = Instance.new("SpecialMesh")
- Script31 = Instance.new("Script")
- Script32 = Instance.new("Script")
- Sound33 = Instance.new("Sound")
- Tool0.Name = "RBat HRD V8"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- LocalScript1.Name = "Local Gui"
- LocalScript1.Parent = Tool0
- table.insert(cors,sandbox(LocalScript1,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(.5)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Script2.Parent = Tool0
- table.insert(cors,sandbox(Script2,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- local lunge_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function blow(hit)
- if (hit.Parent == nil) then return end -- happens when bullet hits sword
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- wait(1)
- untagHumanoid(humanoid)
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function attack()
- damage = slash_damage
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function lunge()
- damage = lunge_damage
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Lunge"
- anim.Parent = Tool
- force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
- force.Parent = Tool.Parent.Torso
- wait(.25)
- swordOut()
- wait(.25)
- force.Parent = nil
- wait(.5)
- swordUp()
- damage = slash_damage
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,-1)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(1,0,0)
- end
- function swordAcross()
- -- parry
- end
- Tool.Enabled = true
- local last_attack = 0
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- t = r.Stepped:wait()
- if (t - last_attack < .2) then
- lunge()
- else
- attack()
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- script.Parent.Parent.Humanoid.WalkSpeed = 16
- end
- function unEquipped()
- game.Players:findFirstChild(script.Parent.Parent.Parent.Name).Character.Humanoid.WalkSpeed = 16
- end
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(unEquipped)
- script.Parent.Activated:connect(onActivated)
- connection = sword.Touched:connect(blow)
- end))
- Script3.Name = "Weld Script"
- Script3.Parent = Tool0
- table.insert(cors,sandbox(Script3,function()
- --Simply put it inside any model with bricks inside
- local prev
- local parts = script.Parent:GetChildren()
- for i = 1,#parts do
- if (parts[i].className == "Part") then
- if (prev ~= nil)then
- local weld = Instance.new("Weld")
- weld.Part0 = prev
- weld.Part1 = parts[i]
- weld.C0 = prev.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prev
- end
- prev = parts[i]
- end
- end
- end))
- Part4.Name = "End"
- Part4.Parent = Tool0
- Part4.CFrame = CFrame.new(42.0648499, 5.42735291, 27.7283936, -0.999930859, 0.0104816128, 0.00533350464, 0.0104727102, 0.999943733, -0.00169444236, -0.00535096461, -0.00163846882, -0.999984324)
- Part4.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part4.Position = Vector3.new(42.0648499, 5.42735291, 27.7283936)
- Part4.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part4.Color = Color3.new(0.835294, 0.45098, 0.239216)
- Part4.Size = Vector3.new(0.803968728, 1.15839183, 0.992553949)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Neon orange")
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Neon orange")
- Part4.FormFactor = Enum.FormFactor.Custom
- Part4.formFactor = Enum.FormFactor.Custom
- SpecialMesh5.Parent = Part4
- SpecialMesh5.Scale = Vector3.new(0.850000024, 1, 0.850000024)
- Script6.Parent = Part4
- table.insert(cors,sandbox(Script6,function()
- function x(hit)
- if hit.Name == "Ball" then
- hit.Velocity = script.Parent.Parent.Parent.Head.CFrame.lookVector * math.floor((math.random() * 200) + 40) + Vector3.new (0,math.floor((math.random() * 130) + 120) ,0)
- end
- end
- script.Parent.Touched:connect(x)
- end))
- Script7.Parent = Part4
- table.insert(cors,sandbox(Script7,function()
- function onTouched(hit)
- if hit.Name == "Ball" then
- s = script.Parent.Ting
- s:play()
- wait(.1)
- s1 = script.Parent.sda
- s1:play()
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound8.Name = "Ting"
- Sound8.Parent = Part4
- Sound8.Pitch = 0.80000001192093
- Sound8.PlaybackSpeed = 0.80000001192093
- Sound8.SoundId = "http://www.roblox.com/asset/?id=174300141"
- Sound8.Volume = 1
- Part9.Name = "Handle"
- Part9.Parent = Tool0
- Part9.CFrame = CFrame.new(42.0177917, 0.935705006, 27.7304688, -0.999926269, 0.0104809031, 0.00533590326, 0.0104726618, 0.999934793, -0.00169476983, -0.00535094738, -0.00163859373, -0.999974489)
- Part9.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part9.Position = Vector3.new(42.0177917, 0.935705006, 27.7304688)
- Part9.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part9.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part9.Size = Vector3.new(0.992553949, 1.16128814, 0.992553949)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Reddish brown")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Reddish brown")
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- CylinderMesh10.Parent = Part9
- CylinderMesh10.Scale = Vector3.new(0.449999988, 1.25, 0.550000012)
- Script11.Parent = Part9
- table.insert(cors,sandbox(Script11,function()
- function x(hit)
- if hit.Name == "Ball" then
- hit.Velocity = script.Parent.Parent.Parent.Head.CFrame.lookVector * math.floor((math.random() * 200) + 60) + Vector3.new (0,math.floor((math.random() * 20) + 10) ,0)
- end
- end
- script.Parent.Touched:connect(x)
- end))
- Part12.Name = "Handle2"
- Part12.Parent = Tool0
- Part12.CFrame = CFrame.new(42.0100403, 0.204554006, 27.7369995, -0.999930859, 0.0104815969, 0.00533351442, 0.0104726944, 0.999943733, -0.00169444305, -0.00535097532, -0.00163846952, -0.999984324)
- Part12.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part12.Position = Vector3.new(42.0100403, 0.204554006, 27.7369995)
- Part12.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part12.Color = Color3.new(0.835294, 0.45098, 0.239216)
- Part12.Size = Vector3.new(0.992553949, 0.397021562, 0.992553949)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Neon orange")
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Neon orange")
- Part12.FormFactor = Enum.FormFactor.Custom
- Part12.formFactor = Enum.FormFactor.Custom
- SpecialMesh13.Parent = Part12
- SpecialMesh13.Scale = Vector3.new(0.800000012, 0.800000012, 0.800000012)
- Part14.Name = "Handle3"
- Part14.Parent = Tool0
- Part14.CFrame = CFrame.new(42.0294189, 2.05886102, 27.7335205, -0.999928117, 0.0104809161, 0.00533565786, 0.0104726814, 0.999937654, -0.001694637, -0.00535148662, -0.00163846218, -0.999977827)
- Part14.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part14.Position = Vector3.new(42.0294189, 2.05886102, 27.7335205)
- Part14.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part14.Color = Color3.new(0.835294, 0.45098, 0.239216)
- Part14.Size = Vector3.new(0.802976191, 0.959577203, 0.992553949)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Neon orange")
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Neon orange")
- Part14.FormFactor = Enum.FormFactor.Custom
- Part14.formFactor = Enum.FormFactor.Custom
- Sound15.Name = "Ting"
- Sound15.Parent = Part14
- Sound15.Pitch = 0.80000001192093
- Sound15.PlaybackSpeed = 0.80000001192093
- Sound15.SoundId = "http://www.roblox.com/asset/?id=174300141"
- Sound15.Volume = 1
- SpecialMesh16.Parent = Part14
- SpecialMesh16.Scale = Vector3.new(0.850000024, 1, 0.850000024)
- Script17.Parent = Part14
- table.insert(cors,sandbox(Script17,function()
- function onTouched(hit)
- if hit.Name == "Ball" then
- s = script.Parent.Ting
- s:play()
- wait(.1)
- s1 = script.Parent.sda
- s1:play()
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script18.Parent = Part14
- table.insert(cors,sandbox(Script18,function()
- function x(hit)
- if hit.Name == "Ball" then
- hit.Velocity = script.Parent.Parent.Parent.Head.CFrame.lookVector * math.floor((math.random() * 220) + 30) + Vector3.new (0,math.floor((math.random() * 80) + 105) ,0)
- end
- end
- script.Parent.Touched:connect(x)
- end))
- Part19.Name = "Middle"
- Part19.Parent = Tool0
- Part19.CFrame = CFrame.new(42.0471802, 3.74142003, 27.7310181, -0.999926925, 0.0104808966, 0.0053359149, 0.0104726683, 0.999935746, -0.00169463619, -0.00535121188, -0.00163845927, -0.999975681)
- Part19.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part19.Position = Vector3.new(42.0471802, 3.74142003, 27.7310181)
- Part19.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part19.Color = Color3.new(0.835294, 0.45098, 0.239216)
- Part19.Size = Vector3.new(0.768236756, 0.337793261, 0.992553949)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Neon orange")
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Neon orange")
- Part19.FormFactor = Enum.FormFactor.Custom
- Part19.formFactor = Enum.FormFactor.Custom
- SpecialMesh20.Parent = Part19
- SpecialMesh20.Scale = Vector3.new(0.889999986, 5, 1.85000002)
- Script21.Parent = Part19
- table.insert(cors,sandbox(Script21,function()
- function x(hit)
- if hit.Name == "Ball" then
- hit.Velocity = script.Parent.Parent.Parent.Head.CFrame.lookVector * math.floor((math.random() * 200) + 70) + Vector3.new (0,math.floor((math.random() * 139) + 135) ,0)
- end
- end
- script.Parent.Touched:connect(x)
- end))
- Script22.Parent = Part19
- table.insert(cors,sandbox(Script22,function()
- function onTouched(hit)
- if hit.Name == "Ball" then
- s = script.Parent.Ting
- s:play()
- wait(.1)
- s1 = script.Parent.sda
- s1:play()
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound23.Name = "Ting"
- Sound23.Parent = Part19
- Sound23.Pitch = 0.80000001192093
- Sound23.PlaybackSpeed = 0.80000001192093
- Sound23.SoundId = "http://www.roblox.com/asset/?id=174300141"
- Sound23.Volume = 1
- Part24.Name = "Middle-End"
- Part24.Parent = Tool0
- Part24.CFrame = CFrame.new(42.0541992, 4.4114809, 27.7306519, -0.9999277, 0.0104811387, 0.00533429394, 0.0104726786, 0.999937773, -0.00169456133, -0.00535014272, -0.00163846125, -0.999977767)
- Part24.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part24.Position = Vector3.new(42.0541992, 4.4114809, 27.7306519)
- Part24.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part24.Color = Color3.new(0.835294, 0.45098, 0.239216)
- Part24.Size = Vector3.new(0.768236756, 0.59955591, 0.992553949)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Neon orange")
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Neon orange")
- Part24.FormFactor = Enum.FormFactor.Custom
- Part24.formFactor = Enum.FormFactor.Custom
- SpecialMesh25.Parent = Part24
- SpecialMesh25.Scale = Vector3.new(0.889999986, 5, 1.85000002)
- Script26.Parent = Part24
- table.insert(cors,sandbox(Script26,function()
- function x(hit)
- if hit.Name == "Ball" then
- hit.Velocity = script.Parent.Parent.Parent.Head.CFrame.lookVector * math.floor((math.random() * 200) + 70) + Vector3.new (0,math.floor((math.random() * 130) + 125) ,0)
- end
- end
- script.Parent.Touched:connect(x)
- end))
- Script27.Parent = Part24
- table.insert(cors,sandbox(Script27,function()
- function onTouched(hit)
- if hit.Name == "Ball" then
- s = script.Parent.Ting
- s:play()
- wait(.1)
- s1 = script.Parent.sda
- s1:play()
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound28.Name = "Ting"
- Sound28.Parent = Part24
- Sound28.Pitch = 0.80000001192093
- Sound28.PlaybackSpeed = 0.80000001192093
- Sound28.SoundId = "http://www.roblox.com/asset/?id=174300141"
- Sound28.Volume = 1
- Part29.Name = "Middle-Handle"
- Part29.Parent = Tool0
- Part29.CFrame = CFrame.new(42.0414429, 3.03488803, 27.7324219, -0.999930799, 0.0104816109, 0.00533296773, 0.0104727084, 0.999943733, -0.00169443665, -0.00535042724, -0.00163846882, -0.999984324)
- Part29.Orientation = Vector3.new(0.100000001, 179.690002, 0.600000024)
- Part29.Position = Vector3.new(42.0414429, 3.03488803, 27.7324219)
- Part29.Rotation = Vector3.new(179.899994, 0.310000002, -179.399994)
- Part29.Color = Color3.new(0.835294, 0.45098, 0.239216)
- Part29.Size = Vector3.new(0.768236756, 0.643840134, 0.992553949)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.BrickColor = BrickColor.new("Neon orange")
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.brickColor = BrickColor.new("Neon orange")
- Part29.FormFactor = Enum.FormFactor.Custom
- Part29.formFactor = Enum.FormFactor.Custom
- SpecialMesh30.Parent = Part29
- SpecialMesh30.Scale = Vector3.new(0.889999986, 5, 1.85000002)
- Script31.Parent = Part29
- table.insert(cors,sandbox(Script31,function()
- function x(hit)
- if hit.Name == "Ball" then
- hit.Velocity = script.Parent.Parent.Parent.Head.CFrame.lookVector * math.floor((math.random() * 200) + 70) + Vector3.new (0,math.floor((math.random() * 119) + 115) ,0)
- end
- end
- script.Parent.Touched:connect(x)
- end))
- Script32.Parent = Part29
- table.insert(cors,sandbox(Script32,function()
- function onTouched(hit)
- if hit.Name == "Ball" then
- s = script.Parent.Ting
- s:play()
- wait(.1)
- s1 = script.Parent.sda
- s1:play()
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound33.Name = "Ting"
- Sound33.Parent = Part29
- Sound33.Pitch = 0.80000001192093
- Sound33.PlaybackSpeed = 0.80000001192093
- Sound33.SoundId = "http://www.roblox.com/asset/?id=174300141"
- Sound33.Volume = 1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = Player.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment