SHOW:
|
|
- or go back to the newest paste.
| 1 | Tool = Instance.new("Tool")
| |
| 2 | - | Tool.Name = "Sword" |
| 2 | + | Tool.Name = "Grab" |
| 3 | - | Knife = Instance.new("Part")
|
| 3 | + | Brain = Instance.new("Part")
|
| 4 | - | Knife.Name = "Handle" |
| 4 | + | Brain.Name = "Handle" |
| 5 | - | Knife.Parent = Tool |
| 5 | + | Brain.Parent = Tool |
| 6 | - | Tool.Parent = workspace.Lucas_YT111 |
| 6 | + | |
| 7 | - | Knife.Size = Vector3.new(4, 4, 1) |
| 7 | + | Brain.Size = Vector3.new(1, 1, 1) --haha smol brain |
| 8 | - | Knife.Massless = true |
| 8 | + | Brain.Massless = true |
| 9 | - | Knife.CanCollide = true |
| 9 | + | Brain.Transparency = 1 |
| 10 | - | myhum = owner.Character.Humanoid |
| 10 | + | |
| 11 | - | local stab = Instance.new("Sound", owner.character.Head)
|
| 11 | + | |
| 12 | - | stab.SoundId = "rbxassetid://663369157" |
| 12 | + | |
| 13 | - | stab.Volume = 1 |
| 13 | + | if islunging then |
| 14 | - | stab.Looped = true |
| 14 | + | if part.Name ~= "Base" then |
| 15 | if part.Name ~= owner.Character.Name then | |
| 16 | - | |
| 16 | + | local attachment0 = Instance.new("Attachment")
|
| 17 | attachment0.Parent = part | |
| 18 | - | islunging = true |
| 18 | + | local attachment1 = Instance.new("Attachment")
|
| 19 | - | local Anim = Instance.new("StringValue")
|
| 19 | + | attachment1.Parent = Brain |
| 20 | - | Anim.Name = "toolanim" |
| 20 | + | alignposition = Instance.new("AlignPosition")
|
| 21 | - | Anim.Value = "Lunge" |
| 21 | + | alignposition.Parent = Brain |
| 22 | - | Anim.Parent = Tool |
| 22 | + | alignposition.Attachment0 = attachment0 |
| 23 | - | wait(0.25) |
| 23 | + | alignposition.Attachment1 = attachment1 |
| 24 | alignposition.RigidityEnabled = true | |
| 25 | - | wait(0.40) |
| 25 | + | ParticleEmitter68.Parent = part |
| 26 | ParticleEmitter68.Speed = NumberRange.new(0.40000000596, 0.40000000596) | |
| 27 | - | |
| 27 | + | ParticleEmitter68.Rotation = NumberRange.new(-180, 180) |
| 28 | ParticleEmitter68.Color = ColorSequence.new(Color3.new(0, 0, 0.3),Color3.new(0, 0, 1)) | |
| 29 | - | if islunging then |
| 29 | + | ParticleEmitter68.LightEmission = 0.85000002384186 |
| 30 | - | if part.Name ~= "Base" then |
| 30 | + | ParticleEmitter68.LightInfluence = 1 |
| 31 | - | if part.Name ~= "Lucas_YT111" then |
| 31 | + | ParticleEmitter68.Texture = "http://www.roblox.com/asset/?id=304437537" |
| 32 | ParticleEmitter68.Transparency = NumberSequence.new(0.15000000596,0,0.5) | |
| 33 | - | part.Name = "Handle" |
| 33 | + | ParticleEmitter68.ZOffset = 5 |
| 34 | - | part.Parent = Tool |
| 34 | + | ParticleEmitter68.Size = NumberSequence.new(0.40000000596,0) |
| 35 | ParticleEmitter68.Acceleration = Vector3.new(0, 5, 0) | |
| 36 | - | part.Anchored = false |
| 36 | + | ParticleEmitter68.Lifetime = NumberRange.new(0.90000003576, 3) |
| 37 | ParticleEmitter68.Rate = 150 | |
| 38 | ParticleEmitter68.RotSpeed = NumberRange.new(-180, 180) | |
| 39 | ParticleEmitter68.SpreadAngle = Vector2.new(360, 360) | |
| 40 | ParticleEmitter68.VelocitySpread = 360 | |
| 41 | - | |
| 41 | + | end |
| 42 | - | |
| 42 | + | |
| 43 | end | |
| 44 | end | |
| 45 | Tool.Activated:connect(function() | |
| 46 | if islunging then | |
| 47 | islunging = false | |
| 48 | local Anim = Instance.new("StringValue")
| |
| 49 | Anim.Name = "toolanim" | |
| 50 | Anim.Value = "Slash" | |
| 51 | Anim.Parent = Tool | |
| 52 | alignposition:Destroy() | |
| 53 | - | |
| 53 | + | ParticleEmitter68:Destroy() |
| 54 | - | local decal2 = Instance.new("Decal", Knife)
|
| 54 | + | else |
| 55 | - | decal2.Transparency = 0 |
| 55 | + | islunging = true |
| 56 | - | decal2.Face = Enum.NormalId.Front |
| 56 | + | local Anim = Instance.new("StringValue")
|
| 57 | - | local happyFace = "http://www.roblox.com/asset/?id=7370272015" |
| 57 | + | Anim.Name = "toolanim" |
| 58 | - | decal2.Texture = happyFace |
| 58 | + | Anim.Value = "Lunge" |
| 59 | - | |
| 59 | + | Anim.Parent = Tool |
| 60 | - | Tool.Unequipped:connect(function() |
| 60 | + | ParticleEmitter68 = Instance.new("ParticleEmitter")
|
| 61 | - | stab:Stop() |
| 61 | + | end |
| 62 | end) | |
| 63 | - | Tool.Equipped:connect(function() |
| 63 | + | |
| 64 | - | stab:Play() |
| 64 | + | |
| 65 | - | end) |
| 65 | + | |
| 66 | function ButtonDown() | |
| 67 | if Mouse.Target ~= nil then | |
| 68 | E:FireServer("Down",Mouse.Target)
| |
| 69 | end | |
| 70 | end | |
| 71 | Mouse.Button1Down:Connect(ButtonDown) | |
| 72 | ]],owner.PlayerGui)) | |
| 73 | E.OnServerEvent:Connect(thinghere) | |
| 74 | Tool.GripPos = Vector3.new(0,0,10) |