|
| 10 Jul 2014 04:06 AM |
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??? |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 04:11 AM |
| Someone? come on plea I am begging for some help |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 04:16 AM |
| Anything appearing in output?. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 04:17 AM |
| It also appears you're missing a few ends. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 04:19 AM |
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 |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 04:21 AM |
| Nevermind, I was typing that out as you were replying. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:22 AM |
| Now the last line isn't working D; |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:24 AM |
| Try using BrickColor.Color |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:26 AM |
| But it's not a brick, it's a gui |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:27 AM |
| I'd just like the last lime fixed now please |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:27 AM |
Using, something such as, BrickColor.new("Bright red").Color would convert the BrickColor into Color3. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:35 AM |
| Ok but the output says that the LAST line isn't working which is what I'm now asking, I have changed that |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:36 AM |
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 |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:37 AM |
| Now I see the problem, you used OnClicked instead of onClicked. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:42 AM |
| Not working because t's attempting to call a nil value, no line given |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:44 AM |
| Scrap what I just said, now it won't work but no error come up in the output. Kinda weird |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 04:47 AM |
| Is debounce defined as true before the function is called?. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 04:48 AM |
| No line, no error, just not working for some reason |
|
|
| Report Abuse |
|
|
| |
|