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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 24 Oct 2014 |
| Total Posts: 74 |
|
| |
|
|
| 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 |
|
|
|
| 27 Jul 2015 05:50 AM |
| You havent called the function |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|