Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --LINKEDSWORD BY HENLOMYDUDE--
- print("LinkedSword by HenloMyDude")
- --TOOL SETUP--
- tool = Instance.new("Tool")
- tool.Parent = owner.Backpack
- tool.Name = "ClassicSword"
- tool.ToolTip = "Original gear made by roblox. Converted to script by HenloMyDude"
- tool.TextureId = "rbxasset://Textures/Sword128.png"
- tool.GripForward = Vector3.new(-1, 0, 0)
- tool.GripPos = Vector3.new(0, 0, -1.5)
- tool.GripRight = Vector3.new(0, 1, 0)
- tool.GripUp = Vector3.new(0, 0, 1)
- handle = Instance.new("Part",tool)
- handle.Name = "Handle"
- handle.Size = Vector3.new(1, 0.8, 4)
- handle.Reflectance = 0.4
- handle.BrickColor = BrickColor.new("Dark stone grey")
- mesh = Instance.new("SpecialMesh",handle)
- mesh.Name = "Mesh"
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxasset://fonts/sword.mesh"
- mesh.TextureId = "rbxasset://textures/SwordTexture.png"
- swordlunge = Instance.new("Sound",handle)
- swordlunge.Name = "SwordLunge"
- swordlunge.Volume = 0.6
- swordlunge.SoundId = "http://www.roblox.com/asset/?id=12222208"
- swordslash = Instance.new("Sound",handle)
- swordslash.Name = "SwordSlash"
- swordslash.Volume = 0.7
- swordslash.SoundId = "http://www.roblox.com/asset/?id=12222216"
- unsheath = Instance.new("Sound",handle)
- unsheath.Name = "Unsheath"
- unsheath.Volume = 1
- unsheath.SoundId = "http://www.roblox.com/asset/?id=12222225"
- --SCRIPTS--
- Grips = {
- Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
- Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
- }
- tool.Equipped:connect(function()
- unsheath:Play()
- end)
- basic = false
- lunge = false
- attackd = false
- tool.Activated:connect(function()
- if attackd == false then
- basic = true
- lunge = false
- attackd = true
- swordslash:Play()
- local weld = Instance.new("Weld",owner.Character["Right Arm"])
- weld.Part0 = owner.Character["Right Arm"]
- weld.Part1 = owner.Character["Torso"]
- weld.C0 = CFrame.new(-1.5, 0, 0)
- weld.C1 = CFrame.Angles(-80, 0, 0)
- wait(0.0000001)
- weld.C1 = CFrame.Angles(70, 0, 0)
- wait(0.0000001)
- weld.C1 = CFrame.Angles(50, 0, 0)
- wait(0.3)
- weld.C1 = CFrame.Angles(70, 0, 0)
- wait(0.0000001)
- weld.C1 = CFrame.Angles(-80, 0, 0)
- wait(0.0000001)
- weld:Destroy()
- attackd = false
- end
- end)
- tool.Activated:connect(function()
- if attackd == true then
- lunge = true
- basic = false
- attackd = true
- tool.Grip = Grips.Out
- swordlunge:Play()
- local weld = Instance.new("Weld",owner.Character["Right Arm"])
- weld.Part0 = owner.Character["Right Arm"]
- weld.Part1 = owner.Character["Torso"]
- weld.C0 = CFrame.new(-1.5, 0, 0)
- weld.C1 = CFrame.Angles(-80, 0, 0)
- wait(1)
- attackd = false
- tool.Grip = Grips.Up
- weld:Destroy()
- end
- end)
- handle.Touched:connect(function(hit)
- if attackd == true then
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- if basic then
- v.Health = v.Health - 5
- elseif lunge then
- v.Health = v.Health - 15
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement