M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
You know, those things that war clans use.
Not working:
function onClicked(touch)-- Making onTouch and naming it touch for no reason what do ever
if debounce == true then return end --Debounce stuff
debounce = true -- More debounce stuff
if touch.Parent:findFirstChild("Humanoid") ~= nil then
if game.Players:GetPlayerFromCharacter(touch.Parent).TeamColor == BrickColor.new("Really red") then -- Do a short dance and check the Team
game.Workspace.StarterGui.ScreenGui.Frame1.CoR.Text = ("Raiders") -- Change the Gui text to Raiders
game.Workspace.StarterGui.ScreenGui.Frame1.CoR.TextColor3 = TextColor3.new ("Really red")-- Make it look snazzy by matching the team colour
debounce = false -- YAY more debounce
end -- let's end the script we don't why
script.Parent.ClickDetector.MouseClick:connect (OnClicked) -- This is underlined in red, this this the error??? |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Please??????????? |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Someone? come on plea I am begging for some help |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Pleeeeeeease help me!!! |
|
|
Anything appearing in output?. |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
I'll look
|
|
|
It also appears you're missing a few ends. |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Error at line 4 |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
function onClicked(touch)-- Making onTouch and naming it touch for no reason what do ever
if debounce == true then return end --Debounce stuff
debounce = true -- More debounce stuff
if touch.Parent:findFirstChild("Humanoid") ~= nil then
if game.Players:GetPlayerFromCharacter(touch.Parent).TeamColor == BrickColor.new("Really red") then -- Do a short dance and check the Team
game.Workspace.StarterGui.ScreenGui.Frame1.CoR.Text = ("Raiders") -- Change the Gui text to Raiders
game.Workspace.StarterGui.ScreenGui.Frame1.CoR.TextColor3 = TextColor3.new ("Really red")-- Make it look snazzy by matching the team colour
debounce = false -- YAY more debounce
end -- let's end the script we don't why
end -- end again
end -- ugghh another end
script.Parent.ClickDetector.MouseClick:connect (OnClicked) -- This is underlined in red, this this the error???
I'll test it now |
|
|
|
Nevermind, I was typing that out as you were replying. |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Now the last line isn't working D; |
|
|
Try using BrickColor.Color |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
But it's not a brick, it's a gui |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
I'd just like the last lime fixed now please |
|
|
Using, something such as,
BrickColor.new("Bright red").Color
would convert the BrickColor into Color3. |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Ok but the output says that the LAST line isn't working which is what I'm now asking, I have changed that |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
So I have this:
function onClicked(touch)-- Making onTouch and naming it touch for no reason what do ever
if debounce == true then return end --Debounce stuff
debounce = true -- More debounce stuff
if touch.Parent:findFirstChild("Humanoid") ~= nil then
if game.Players:GetPlayerFromCharacter(touch.Parent).TeamColor == BrickColor.new("Really red") then -- Do a short dance and check the Team
game.Workspace.StarterGui.ScreenGui.Frame1.CoR.Text = ("Raiders") -- Change the Gui text to Raiders
game.Workspace.StarterGui.ScreenGui.Frame1.CoR.TextColor3 = BrickColor.new ("Really red").Color-- Make it look snazzy by matching the team colour
debounce = false -- YAY more debounce
end -- let's end the script we don't why
end -- end again
end -- ugghh another end
script.Parent.ClickDetector.MouseClick:connect (OnClicked) -- Call function at 133713371337 |
|
|
Now I see the problem, you used OnClicked instead of onClicked. |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Not working because t's attempting to call a nil value, no line given |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
Scrap what I just said, now it won't work but no error come up in the output. Kinda weird |
|
|
|
Is debounce defined as true before the function is called?. |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
No line, no error, just not working for some reason |
|
M4LLARDJoin Date: 2012-08-13 Post Count: 3201 |
I think so |
|