Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

describing my problem concisely?

Asked by 6 years ago
Edited 6 years ago

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
0
its not working.. why? mostafastar 0 — 6y

1 answer

Log in to vote
0
Answered by
Fifkee 2017 Community Moderator Moderation Voter
6 years ago
  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
Ad

Answer this question