Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

whats wrong with my script?

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.