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

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

Asked by
Gigaset39 111
2 years ago

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

Log in to vote
0
Answered by 2 years ago

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

0
hint - script.Parent.Text i have done that.it doesent write the text on it.. Gigaset39 111 — 2y
0
just tell me how i should arange the part that the script will write on it. Gigaset39 111 — 2y
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 "-" JustinWe12 723 — 2y
Ad

Answer this question