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
 

Re: Making a Terminal

Previous Thread :: Next Thread 
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
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
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:09 AM
Please???????????
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:11 AM
Someone? come on plea I am begging for some help
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:14 AM
Pleeeeeeease help me!!!
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:16 AM
Anything appearing in output?.
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:17 AM
I'll look
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:17 AM
It also appears you're missing a few ends.
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:18 AM
Error at line 4
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:20 AM
Add two more ends.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:21 AM
Nevermind, I was typing that out as you were replying.
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:22 AM
Now the last line isn't working D;
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:24 AM
Try using BrickColor.Color
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:26 AM
But it's not a brick, it's a gui
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:27 AM
I'd just like the last lime fixed now please
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:27 AM
Using, something such as,
BrickColor.new("Bright red").Color
would convert the BrickColor into Color3.
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
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
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:37 AM
Now I see the problem, you used OnClicked instead of onClicked.
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:42 AM
Not working because t's attempting to call a nil value, no line given
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:45 AM
Which line?.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 04:47 AM
Is debounce defined as true before the function is called?.
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:48 AM
No line, no error, just not working for some reason
Report Abuse
IAmYourDominus is not online. IAmYourDominus
Joined: 13 Aug 2012
Total Posts: 1197
10 Jul 2014 04:49 AM
I think so
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