For example, it sets the walkspeed to 4. then the function ends. Would it do that or something else?
Now I’m confused. Read these comments, I’ll have to do some research because my understanding of return is completely wrong
local aBoolValue = false
local function test()
--[[
.
.
.
]]
if not aBoolValue then
-- This stuff will run
print("one")
return
-- I thought this stuff wouldn't run, but it actually does lol
print("two")
end
end
test()
Oops yea messed up syntax, it’s do return end
instead of just return
, then it won’t print “two”
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.