|
| 28 May 2016 09:24 AM |
Tool.Equipped:connect(function(holding) Mouse.Button1Down:connect(function(clicked) if (inUse ~= true) then -- the if statement is pretty much ignored.. and is able to repeat here... local Animation = Tool:FindFirstChild("Slash") local Animator = Player.Character.Humanoid:LoadAnimation(Animation) Animator:Play() end end) Mouse.Icon = "http://www.roblox.com/asset?id=68308747" Handle.Touched:connect(function(touched) if (touched:FindFirstChild("Humanoid")) then if (touched.Name ~= Player.Name) then ---- ---- ---- If I conbine all these if(inUse ~= true) then into one if statement, it wont work. inUse = true print (inUse) end end end end) end)
What's with the if statements?
Loading. . . . . |
|
|
| Report Abuse |
|