SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local pl = game.Players.DevilLinux.Character |
| 1 | + | local pl = game.Players.sethcuzzone5.Character |
| 2 | local tool = Instance.new("Tool", game.Workspace)
| |
| 3 | tool.Name = "Trident" | |
| 4 | tool.GripRight = Vector3.new(0.042, -0.657, 0.753) | |
| 5 | tool.GripUp = Vector3.new(0.004, 0.736, 0.677) | |
| 6 | ------brix------ | |
| 7 | han = Instance.new("Part", tool)
| |
| 8 | han.Size = Vector3.new(1, 1, 7) | |
| 9 | han.Position = Vector3.new(0, 9, 0) | |
| 10 | han.Name = "Handle" | |
| 11 | spe = Instance.new("SpecialMesh", han)
| |
| 12 | spe.MeshId = "http://www.roblox.com/asset/?id=30694864" | |
| 13 | spe.TextureId = "http://www.roblox.com/asset/?id=30857195" | |
| 14 | spe.VertexColor = Vector3.new(1, 0, 0) | |
| 15 | spe.Scale = Vector3.new(1, 1, 2) | |
| 16 | ------Sep. of anim.---- | |
| 17 | local anima = Instance.new("Animation")
| |
| 18 | anima.AnimationId = "http://www.roblox.com/asset?id=340927495" | |
| 19 | local aanim = pl.Humanoid:LoadAnimation(anima) | |
| 20 | local atka = Instance.new("Animation")
| |
| 21 | atka.AnimationId = "http://www.roblox.com/asset?id=340955236" | |
| 22 | local atksa = pl.Humanoid:LoadAnimation(atka) | |
| 23 | -----function below----- | |
| 24 | tool.Equipped:connect(function () | |
| 25 | aanim:Play() | |
| 26 | end) | |
| 27 | ----------kill------------- | |
| 28 | ||
| 29 | local ss = Instance.new("Configuration", han)
| |
| 30 | ss.Name = "Configurations" | |
| 31 | local dd = Instance.new("BoolValue", ss)
| |
| 32 | dd.Name = "CanDamage" | |
| 33 | dd.Value = false | |
| 34 | local ff = Instance.new("NumberValue", ss)
| |
| 35 | ff.Name = "Damage" | |
| 36 | ff.Value = 50 | |
| 37 | local damage = han.Configurations.Damage.Value | |
| 38 | han.Touched:connect(function(hit) | |
| 39 | if hit.Parent and hit.Parent:FindFirstChild("Humanoid") and han.Configurations.CanDamage.Value == true then -- if it meets the criteria
| |
| 40 | hit.Parent.Humanoid:TakeDamage(damage) | |
| 41 | end | |
| 42 | end) | |
| 43 | ----------function 2------- | |
| 44 | tool.Activated:connect(function () | |
| 45 | aanim:Stop(0.1) | |
| 46 | wait(0.5) | |
| 47 | dd.Value = true | |
| 48 | atksa:Play() | |
| 49 | tool.GripRight = Vector3.new(0, 1, 0) | |
| 50 | wait(1) | |
| 51 | dd.Value = false | |
| 52 | aanim:Play() | |
| 53 | tool.GripRight = Vector3.new(0.042, -0.657, 0.753) | |
| 54 | tool.GripUp = Vector3.new(0.004, 0.736, 0.677) | |
| 55 | end) | |
| 56 | tool.Unequipped:connect(function () | |
| 57 | aanim:Stop(1) | |
| 58 | end) | |
| 59 | wait(0.1) | |
| 60 | tool.Parent = pl |