Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pl = game.Players.Dogeness33.Character
- local tool = Instance.new("Tool", game.Workspace)
- tool.Name = "Trident"
- tool.GripRight = Vector3.new(0.042, -0.657, 0.753)
- tool.GripUp = Vector3.new(0.004, 0.736, 0.677)
- ------brix------
- han = Instance.new("Part", tool)
- han.Size = Vector3.new(1, 1, 7)
- han.Position = Vector3.new(0, 9, 0)
- han.Name = "Handle"
- spe = Instance.new("SpecialMesh", han)
- spe.MeshId = "http://www.roblox.com/asset/?id=30694864"
- spe.TextureId = "http://www.roblox.com/asset/?id=30857195"
- spe.VertexColor = Vector3.new(1, 0, 0)
- spe.Scale = Vector3.new(1, 1, 2)
- ------Sep. of anim.----
- local anima = Instance.new("Animation")
- anima.AnimationId = "http://www.roblox.com/asset?id=340927495"
- local aanim = pl.Humanoid:LoadAnimation(anima)
- local atka = Instance.new("Animation")
- atka.AnimationId = "http://www.roblox.com/asset?id=340955236"
- local atksa = pl.Humanoid:LoadAnimation(atka)
- -----function below-----
- tool.Equipped:connect(function ()
- aanim:Play()
- end)
- ----------kill-------------
- local ss = Instance.new("Configuration", han)
- ss.Name = "Configurations"
- local dd = Instance.new("BoolValue", ss)
- dd.Name = "CanDamage"
- dd.Value = false
- local ff = Instance.new("NumberValue", ss)
- ff.Name = "Damage"
- ff.Value = 50
- local damage = han.Configurations.Damage.Value
- han.Touched:connect(function(hit)
- if hit.Parent and hit.Parent:FindFirstChild("Humanoid") and han.Configurations.CanDamage.Value == true then -- if it meets the criteria
- hit.Parent.Humanoid:TakeDamage(damage)
- end
- end)
- ----------function 2-------
- tool.Activated:connect(function ()
- aanim:Stop(0.1)
- wait(0.5)
- dd.Value = true
- atksa:Play()
- tool.GripRight = Vector3.new(0, 1, 0)
- wait(1)
- dd.Value = false
- aanim:Play()
- tool.GripRight = Vector3.new(0.042, -0.657, 0.753)
- tool.GripUp = Vector3.new(0.004, 0.736, 0.677)
- end)
- tool.Unequipped:connect(function ()
- aanim:Stop(1)
- end)
- wait(0.1)
- tool.Parent = pl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement