So I've only used return for on thing and that's to return end. Ex,
if not player then return end
But I really don't know anything else. Let's say I do something like this,
local x = 5
function oddOrEven(x)
if x%2 == 0 then
return false
else
return true
end
end
oddOrEven(x)
How would you get if its true or false. And yes this might be unnecessary in the example but because of my lack of knowledge on returns I don't really know what they would be used for. If someone could tell me how return works and what it's used for I would be really happy (:
Also, I'm okay at roblox scripting I just haven't gotten around to how return works.

1 comment
My explanation: https://www.youtube.com/watch?v=d55RS9Rf4CU&list=PLmc6bATvQAAvI-91icMYUflYcm4bO0r66&index=3