Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

whats wrong with my script?

Asked by
ned995 0
10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

if (Tool.Enabled == false) then return false end

if (Tool.Enabled == true) then return true end

Tool.Enabled = true function.onActivated()

if not Tool.Enabled then return end

local character = Tool.Parent; local humanoid = character.Humanoid local speed = humanoid.Walkspeed

if humanoid == nil then print ('Humanoid not found') return end

if Tool.Enabled = true then speed = 57 end

1 answer

Log in to vote
0
Answered by
m0rgoth 75
10 years ago

remove the

if (Tool.Enabled == true) then return true end

When you call 'return' it exits the method. That is why the return false is called.

Ad

Answer this question