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

Problem with an If statement?

Asked by 9 years ago

For some reason this always fires the "else" portion in lines 89-93. I can't figure out why. I printed out "term.owner.Value" right before this line of code and it prints out "none" which is exactly the condition that should make it fire the first part, not the else part.

Btw, I set the StringValue owner to "none" by default.

001timer1 = game.Workspace.Timer1
002timer2 = game.Workspace.Timer2
003clickable = true
004term = script.Parent
005team_color = nil
006 
007function refresh_term()
008    -- is this needed?
009end
010 
011function find_team(color)
012    for i,v in pairs(game.Teams:GetChildren()) do
013        if v.TeamColor == color then
014            return v
015        else
View all 102 lines...
0
From what I see, you have no function callers. LateralLace 297 — 9y
0
What do you mean? fireflame09225 11 — 9y

Answer this question