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

describing my problem concisely?

owner = script.Parent.Parent.currentowner.Value

function disone()

	if game.Workspace:FindFirstChild(owner) then do
		print "owner was found" 
	end
	end
		
		else do
		script.Parent.Parent.currentowner.Value = ("")
		end

1 comment

0

its not working.. why?

1 answer

  1. You don't need to do "then do." Although it works, you can just do "then."
  2. The else statement is part of the conditional statement, like so.
if this then
	do that
elseif this and that then
	do this
else
	do last
end

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