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

I Dont Know how to corectly write this script: Can u help me?

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

1 answer

Pretty sure you should replace the "Hint" parts with script.Parent.Text, as it is not a variable

3 comments

0

hint - script.Parent.Text i have done that.it doesent write the text on it..

0

just tell me how i should arange the part that the script will write on it.

0

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 "-"

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