Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = Instance.new("Tool",owner.Backpack)
- local handle = Instance.new("Part",tool)
- handle.Name = "Handle"
- handle.Shape = "Cylinder"
- handle.Size = Vector3.new(4,1,1)
- handle.BrickColor = BrickColor.new("Fossil")
- handle.Reflectance = 1
- handle.Material = "Metal"
- tool.Name = "Sword"
- tool.GripPos = Vector3.new(-1.449, 0.358, 0)
- local normalgrip = CFrame.new(-1.44859314, 0.357548714, 3.81469727e-06, -2.69850887e-07, 1, 6.0395945e-07, 4.61935002e-07, -6.03959336e-07, 1, 1, 2.69851171e-07, -4.61934832e-07)
- local atackgrip = CFrame.new(-2.0602684, 0.0410385132, 3.81469727e-06, -3.19326972e-07, 5.51806522e-07, -1, 7.93135086e-07, 1, 5.51806295e-07, 1, -7.93134916e-07, -3.19327398e-07)
- local slash = Instance.new("Sound", handle)
- local equip = Instance.new("Sound", handle)
- slash.SoundId = "rbxassetid://9125670883"
- equip.SoundId = "rbxassetid://9116787844"
- function slish()
- tool.Enabled = false
- slash:Play()
- tool.Grip = atackgrip
- wait(.5)
- tool.Grip = normalgrip
- wait(1.5)
- tool.Enabled = true
- end
- function eqip()
- equip:Play()
- tool.Grip = normalgrip
- end
- function touch(part)
- if part.Parent.Humanoid then
- part.Parent.Humanoid:TakeDamage(25)
- end
- end
- handle.Touched:Connect(touch)
- tool.Activated:Connect(slish)
- tool.Equipped:Connect(eqip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement