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

What happens when you return nothing why does it do nothing?

if game.Workspace.Baseplate then
	
	return
end

if game.Workspace.Baseplate then
	print('G')
end



When I do this it litteraly does nothing not even print

I was wondering why when I did this it dosen't print G

1 answer

✓ Accepted answer

The content of a Script is effectively the body of a function and the return statement stops execution of the script at that line, the same way that nothing after the return statement inside a function would execute.

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