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
 

GUI color change isn't working?

Previous Thread :: Next Thread 
Kent0003 is not online. Kent0003
Joined: 28 Oct 2013
Total Posts: 263
05 Jul 2014 04:22 PM
(Script is below) I am aware my name is cancelled out by all those random letters in the middle. The button turns red but the "House" text doesn't change color nor to anything besides ZS Squad PE key pickup. im guessing I did something wrong with the color changing for TextColor3... Thanks for the help!




Script:
RestrictedPlayers = {"Kethsftnt0003","lmanabc123","ZSsquad"}
script.Parent.ClickDetector.MouseClick:connect(function(Clicker)
for _,v in pairs(RestrictedPlayers) do
if Clicker.Name ~= v then
print("You do not have permission")
script.Parent.BrickColor = BrickColor.new('Really red')
script.Parent.Parent.Parent.Form.House.SurfaceGui.TextColor3.new = ('Really red')
script.Parent.Parent.Parent.Form.House.SurfaceGui.SUV1.Text = "Permission Error"
wait (2)
script.Parent.BrickColor = BrickColor.new('Light stone grey')
script.Parent.Parent.Parent.Form.House.SurfaceGui.TextColor3.new = ('Lime green')
script.Parent.Parent.Parent.Form.House.SurfaceGui.SUV1.Text = "ZS Squad PE key pickup"
else
print("You are permission")
local drink = script.Parent.Parent.SUV2 -- Gear.name here
local spot = script.Parent.Parent.Giver
local db = false

local q = script.Parent.Parent.q
local w = script.Parent.Parent.w
local e = script.Parent.Parent.e
local r = script.Parent.Parent.r
local t = script.Parent.Parent.t
local y = script.Parent.Parent.y
local b = script.Parent.Parent.b

local a = script.Parent.Parent.a
local s = script.Parent.Parent.s

local q1 = script.Parent.Parent.q.Decal
local w1 = script.Parent.Parent.w.Decal
local e1 = script.Parent.Parent.e.Decal
local r1 = script.Parent.Parent.r.Decal
local t1 = script.Parent.Parent.t.Decal
local y1 = script.Parent.Parent.y.Decal

if db == false then
db = true
local d = drink:clone()
d.Handle.Position = spot.Position
d.Handle.Anchored = false
d.Handle.CanCollide = true
d.Parent = game.Workspace
wait(.1)


db = false
end

end
end
end)






a penny saved is a penny earned but the government will take it anyways
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
05 Jul 2014 04:26 PM
script.Parent.Parent.Parent.Form.House.SurfaceGui.TextColor3.new = ('Really red')

Don't work like that.

script.Parent.Parent.Parent.Form.House.SurfaceGui.TextColor3 = BrickColor.new('Really red').Color


Or

script.Parent.Parent.Parent.Form.House.SurfaceGui.TextColor3 = Color3.new(1,0,0)
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