Hi everyone,
I made a piece of code that checks a certain values stored in the ReplicatedStorage. If it's higher than a certain number it should make a Gui with a text in it visible. Sadly it doesn't work... It doesn't even print "Condition met", so I'm wondering what's going on here.
Code:
blue = game.ReplicatedStorage.Blue
red = game.ReplicatedStorage.Red
if red.Value >= 10 then
print("Condition met")
script.Parent.Melding.Visible = true
script.Parent.Melding.Text = "Red Wins!"
elseif blue.Value == 200 then
script.Parent.Melding.Visible = true
script.Parent.Melding.Text = "Blue Wins!"
end
|