|
| 10 Apr 2014 05:07 PM |
Sorry if I seem like and idiot, I don't script much... I dunno why this simple script won't work. -------- It keeps saying " '=' expected near 'if' -------- test = Game.Workspace.Indicators.RealIndicator.BrickColor Red = Bright red
if test=Red then print ("Test") end |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 05:08 PM |
test = Game.Workspace.Indicators.RealIndicator.BrickColor
if test="Bright red" then print ("Test") end |
|
|
| Report Abuse |
|
|
devRaver
|
  |
| Joined: 08 Apr 2013 |
| Total Posts: 531 |
|
| |
|
| |
|
|
| 10 Apr 2014 05:18 PM |
In this case... ---- test = Game.Workspace.Indicators.RealIndicator.BrickColor
if test=="Bright red" then Game.StarterGui.Color.TextLabel.Text=Bright red end ---- " '=' expected near 'end' " What mistake did I make now? :p |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 10 Apr 2014 05:19 PM |
| Game.StarterGui.Color.TextLabel.Text = "Bright red" |
|
|
| Report Abuse |
|
|
devRaver
|
  |
| Joined: 08 Apr 2013 |
| Total Posts: 531 |
|
|
| 10 Apr 2014 05:20 PM |
test = game.Workspace.Indicators.RealIndicator.BrickColor
if test.BrickColor == "Bright red" then game.StarterGui.Color.TextLabel.TextColor = Color3.new(1,0,0) end
I'm merely assuming test is a brick and that you want to change the colour of some text to red. |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 10 Apr 2014 05:23 PM |
test = Game.Workspace.Indicators.RealIndicator.BrickColor
if test=="Bright red" then Game.StarterGui.Color.TextLabel.Text=Bright red end ---- " '=' expected near 'end' " What mistake did I make now? :p
Anyways here's the right way
test = script.Parent
if test ~= nil then Game.StarterGui.TextLabel.Text.TextColor3 = Color3.new("Bright red") end
|
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 05:24 PM |
This has no Errors but, it doesnt do anything... ------------- test = Game.Workspace.Indicators.RealIndicator.BrickColor
if test=="Bright red" then Game.StarterGui.Color.TextLabel.Text="Bright red" end |
|
|
| Report Abuse |
|
|
devRaver
|
  |
| Joined: 08 Apr 2013 |
| Total Posts: 531 |
|
|
| 10 Apr 2014 05:25 PM |
| Have you tried using mine? |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 05:27 PM |
| Well no, I wanted it so It changes the text, rather than text color. |
|
|
| Report Abuse |
|
|
Mlatu
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 540 |
|
|
| 10 Apr 2014 05:29 PM |
test = Game.Workspace.Indicators.RealIndicator.BrickColor.Name Red = "Bright red"
if test==Red then print ("Test") end
--This should work! |
|
|
| Report Abuse |
|
|