|
| 19 Apr 2012 07:28 PM |
local h = game.Players.LocalPlayer
function player() if h.TeamColor == BrickColor.new("Bright blue") then script.Parent.Active = false script.Parent.Textcolor3.Color3 = (77/77/77) else script.Parent.Active = true script.Parent.Textcolor3.Color3 = (255/255/255) end end script.Parent.MouseButton1Down:connect(player)
It is suppose to make it so if you're on the bright blue team, then the button to switch your team to bright blue team, the letters are gray (not working), and the button is not suppose to work, but i don't see anything wrong with this script. It doesn't work at all. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 07:32 PM |
| What is with this "script.Parent.Active = false" ? |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 07:38 PM |
| To make it stop people from changing teams |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Apr 2012 07:46 PM |
function player() if h.TeamColor == "Bright blue" then --Doesn't need the BrickColor part you had script.Parent.Active = false script.Parent.Textcolor3 = Color3.new(77,77,77)-- Use Color3.new(#,#,#) else script.Parent.Active = true script.Parent.Textcolor3.Color3 = Color3.new(255,255,255,)-- Use Color3.new(#,#,#) end end
script.Parent.MouseButton1Down:connect(player)
Color 3 is weird, look on the wiki and find how to use it properly, I can't remember how. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 07:56 PM |
Why not just do this?
local h = game.Players.LocalPlayer local Active = nil
function player() if h.TeamColor == "Bright blue" then Active = false script.Parent.Textcolor3.Color3 = (77,77,77) else Active = true script.Parent.Textcolor3.Color3 = (255,255,255) end end
script.Parent.MouseButton1Down:connect(player) |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Apr 2012 08:06 PM |
function player() if h.TeamColor == BrickColor.new("Bright blue") then script.Parent.Active = false script.Parent.TextColor3 = Color3.new(77/255,77/255,77/255,) else script.Parent.Active = true script.Parent.TextColor3 = Color3.new(1,1,1) end end
script.Parent.MouseButton1Down:connect(player)
Try that. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 08:09 PM |
Sorry, I made a mistake Use this one
local h = game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function() if h.TeamColor == BrickColor.new("Bright blue") then script.Parent.Active = false script.Parent.TextColor3 = Color3.new(77/255,77/255,77/255,) else script.Parent.Active = true script.Parent.TextColor3 = Color3.new(1,1,1) end end) |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 08:18 PM |
| that doesn't work ether :( |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 08:22 PM |
Oh haha sorry, I did the same thing again
script.Parent.TextColor3 = Color3.new(77/255,77/255,77/255)
Replace that line with the other |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 08:32 PM |
| The button changed color, but it still works when you press it, follow me so you can see |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 19 Apr 2012 11:42 PM |
local h = game.Players.LocalPlayer
function player() if h.TeamColor == BrickColor.new("Bright blue") then script.Parent.Active = false script.Parent.TextColor3 = Color3.new(77/77/77) else script.Parent.Active = true script.Parent.TextColor3 = Color3.new(255/255/255) end end
script.Parent.MouseButton1Down:connect(player) |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2012 07:13 AM |
Thanks, i edited a little to work though, but it works :D
local h = game.Players.LocalPlayer
function player() if h.TeamColor == BrickColor.new("Bright blue") then script.Parent.Active = false script.Parent.TextColor3 = Color3.new(77/250, 77/250, 77/250) script.Parent.Teleport.Disabled = true else script.Parent.Active = true script.Parent.TextColor3 = Color3.new(255/255, 255/255, 255/255) script.Parent.Teleport.Disabled = false end end
script.Parent.MouseButton1Down:connect(player)
|
|
|
| Report Abuse |
|
|