ok so im trying to make the damage be the value of the strength but times 2 i think i did something wrong
(The Strength thing is a Number value)
01 | local tool = script.Parent |
03 | local hitsound = tool:WaitForChild( "Hit" ) |
05 | local canattack = tool:WaitForChild( "CanAttack" ) |
07 | local plr = tool.Parent.Parent |
09 | local char = plr.Character or plr.CharacterAdded:wait() |
11 | local larm = char:WaitForChild( "Left Arm" ) |
13 | local rarm = char:WaitForChild( "Right Arm" ) |
15 | local STR = plr:FindFirstChild( "Strenght" ).Value |
19 | larm.Touched:connect( function (hit) |
21 | local hum = hit.Parent:FindFirstChild( "Humanoid" ) |
23 | if canattack.Value = = false then |
31 | hum:TakeDamage(STR.Value* 2 ) |
35 | canattack.Value = false |
45 | rarm.Touched:connect( function (hit) |
47 | local hum = hit.Parent:FindFirstChild( "Humanoid" ) |
49 | if canattack.Value = = false then |
57 | hum:TakeDamage(STR.Value* 2 ) |
61 | canattack.Value = false |