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 » Scripters
Home Search
 

Re: This script should work, but it doesnt!

Previous Thread :: Next Thread 
Amnesilox is not online. Amnesilox
Joined: 21 Sep 2012
Total Posts: 3540
27 Jul 2015 05:28 AM
sp=script.Parent
flag=sp.Flag
pole=sp.Pole
teamcolor = game.Teams.BlueTeam.TeamColor
guicolor = game.StarterGui.FlagCapGUI.FlagA
n=0
wavedirection=1


function gotcaptured(newcolor)
flag.BrickColor=newcolor
for i5,v5 in ipairs(sp:GetChildren()) do
if v5.className=="BlueTeam" then
v5.TeamColor=newcolor
v5.BrickColor=newcolor
guicolor.BackgroundColor3 = game.Workspace.Value
end
end
end

What is wrong with this script!


Lets get this published!: http://www.roblox.com/Valentines-Day-Helm-item?id=271170551
Report Abuse
Zeekip is not online. Zeekip
Joined: 24 Oct 2014
Total Posts: 74
27 Jul 2015 05:30 AM
I've been trying

sp=script.Parent
flag=sp.Flag
pole=sp.Pole
teamcolor = game.Teams.BlueTeam.TeamColor
guicolor = game.StarterGui.FlagCapGUI.FlagA
n=0
wavedirection=1


function gotcaptured(newcolor)
flag.BrickColor=newcolor
for i5,v5 in ipairs(sp:GetChildren()) do
if v5.className=="BlueTeam" then
v5.TeamColor=newcolor
v5.BrickColor=newcolor
guicolor.BackgroundColor3 = 29, 0, 255
end
end
end

too but it doesnt work :c
Report Abuse
Amnesilox is not online. Amnesilox
Joined: 21 Sep 2012
Total Posts: 3540
27 Jul 2015 05:39 AM
bump


Lets get this published!: http://www.roblox.com/Valentines-Day-Helm-item?id=271170551
Report Abuse
Zeekip is not online. Zeekip
Joined: 24 Oct 2014
Total Posts: 74
27 Jul 2015 05:41 AM
b
Report Abuse
FactualTheory is not online. FactualTheory
Joined: 10 Sep 2013
Total Posts: 1365
27 Jul 2015 05:44 AM
wait wait what is this junky code??!?!?!?

seriously, it is so inefficient and horrible.

It takes time to make a terminal and this is i dont even want to describe it.

If u want help PM me and i'll see what I can do to make a terminal.
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
27 Jul 2015 05:50 AM
You havent called the function
Report Abuse
Amnesilox is not online. Amnesilox
Joined: 21 Sep 2012
Total Posts: 3540
27 Jul 2015 06:02 AM
@TheRo what do you mean


Lets get this published!: http://www.roblox.com/Valentines-Day-Helm-item?id=271170551
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
27 Jul 2015 06:04 AM
The function won't run unless you call it.

So when do you want the function to start?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
27 Jul 2015 06:05 AM
Evidently there is nothing calling the function.

http://wiki.roblox.com/?title=Scopes - Use top level fields as local
Use spaces between = signs. This is for readability which is important.
Report Abuse
Amnesilox is not online. Amnesilox
Joined: 21 Sep 2012
Total Posts: 3540
27 Jul 2015 06:05 AM
@thero

I want it to start where "function gotcaptured(newcolor)" is.


Lets get this published!: http://www.roblox.com/Valentines-Day-Helm-item?id=271170551
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
27 Jul 2015 06:06 AM
guicolor.BackgroundColor3 = 29, 0, 255
Should be
guicolor.BackgroundColor3 = Color3.new(29/255, 0/255, 255/255)
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
27 Jul 2015 06:07 AM
But where do you want the things inside to start.

For example, at the start of the game, when a button is clicked, when do you want it to start?
Report Abuse
Amnesilox is not online. Amnesilox
Joined: 21 Sep 2012
Total Posts: 3540
27 Jul 2015 06:15 AM
@thero

Idk? I want it to always run...


Lets get this published!: http://www.roblox.com/Valentines-Day-Helm-item?id=271170551
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
27 Jul 2015 06:41 AM
sp=script.Parent
flag=sp.Flag
pole=sp.Pole
teamcolor = game.Teams.BlueTeam.TeamColor
guicolor = game.StarterGui.FlagCapGUI.FlagA
n=0
wavedirection=1


function gotcaptured(newcolor)
flag.BrickColor=newcolor
for i5,v5 in ipairs(sp:GetChildren()) do
if v5.className=="BlueTeam" then
v5.TeamColor=newcolor
v5.BrickColor=newcolor
guicolor.BackgroundColor3 = Color3.new(29/225, 0/255, 255/255)
end
end
end

gotcaptured()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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