generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Why isn't thing working?

Previous Thread :: Next Thread 
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
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
LilMcManiac is online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
10 Apr 2014 05:08 PM
test = Game.Workspace.Indicators.RealIndicator.BrickColor

if test="Bright red" then
print ("Test")
end
Report Abuse
devRaver is not online. devRaver
Joined: 08 Apr 2013
Total Posts: 531
10 Apr 2014 05:09 PM
== not =.
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
10 Apr 2014 05:09 PM
Thanks :)
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
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 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
10 Apr 2014 05:19 PM
Game.StarterGui.Color.TextLabel.Text = "Bright red"
Report Abuse
devRaver is not online. 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 is not online. 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
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
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 is not online. devRaver
Joined: 08 Apr 2013
Total Posts: 531
10 Apr 2014 05:25 PM
Have you tried using mine?
Report Abuse
nullmario45 is not online. nullmario45
Joined: 13 Nov 2010
Total Posts: 1720
10 Apr 2014 05:27 PM
Well no, I wanted it so It changes the text, rather than text color.
Report Abuse
Mlatu is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image