01 | local plr = game.Players.LocalPlayer |
02 | local attack = false |
03 | local mouse = plr:GetMouse() |
04 | local char = plr.Character |
05 | script.Parent.Activated:Connect( function () |
06 |
07 | local hum = char.Humanoid:LoadAnimation(script.Parent.Animation or script.Parent.Animationsd) |
08 | script.Parent.Blade.Trail.Enabled = true |
09 | hum:Play() |
10 | attack = true |
11 | wait(. 50 ) |
12 | hum:Stop() |
13 | script.Parent.Blade.Trail.Enabled = false |
14 |
15 | script.Parent.Blade.Touched:Connect( function (hit) |
01 | local plr = game.Players.LocalPlayer |
02 | local attack = false |
03 | local mouse = plr:GetMouse() |
04 | local char = plr.Character |
05 | script.Parent.Activated:Connect( function () |
06 | local animations = { "Animation" , "Animationsd" } |
07 | local hum = char.Humanoid:LoadAnimation(script.Parent [ animations [ math.random( 1 ,#animations) ] ] ) |
08 | script.Parent.Blade.Trail.Enabled = true |
09 | hum:Play() |
10 | attack = true |
11 | wait(. 50 ) |
12 | hum:Stop() |
13 | script.Parent.Blade.Trail.Enabled = false |
14 | script.Parent.Blade.Touched:Connect( function (hit) |
15 | local hum = hit.Parent:FindFirstChild( "Humanoid" ) |