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