Im making a simon says like game,but im too noob how i should use that? i have a part named Text whit a SurfaceGUI in it,and a text label in it. in the same folder.
how i corectly should arrange the stuff??
while true do
script.Parent.Text = "Hint"
script.Parent.TextColor3 = Color3.new(255,0,0)
wait(4)
Hint = "red"
wait(6)
blue.Transparency = 1
blue.CanCollide = false
yellow.Transparency = 1
yellow.CanCollide = false
green.Transparency = 1
green.CanCollide = false
wait(10)
blue.Transparency = 0
blue.CanCollide = true
yellow.Transparency = 0
yellow.CanCollide = true
green.Transparency = 0
green.CanCollide = true
hint.Text = 'BLUE'
wait(6)
red.Transparency = 1
red.CanCollide = false
yellow.Transparency = 1
yellow.CanCollide = false
green.Transparency = 1
green.CanCollide = false
wait(10)
yellow.Transparency = 0
yellow.CanCollide = true
red.Transparency = 0
red.CanCollide = true
green.Transparency = 0
green.CanCollide = true

3 comments
hint - script.Parent.Text i have done that.it doesent write the text on it..
just tell me how i should arange the part that the script will write on it.
Like Canturion said, you should either replace it with script.Parent.Text as it is not defined or just define the variable "Hint". Also you assign a value to a variable with "=" and not "-"