devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 04:57 PM |
Okay so I am making a terminal for my friend from scratch and it is a term where you click a button to capture it and you wait 15 seconds to capture it and it changes the GUIs accordingly. You need to capture it for 1200 seconds to win (I didn't yet write a winning message due to too many issues already).
The issues: -Not all the GUIs on the Player's screens say the same thing -The Capture Timer GUI is highly broken, if a person clicks the button 2+ times it will count down from 15 for each click they do. -The bricks are changing colors when they aren't supposed to (Possibly connected to the GUIs showing different things).
Here is what I have in the game: Workspace -SOtime -RaiderTime -Terminal --Button ---Script ---ClickDetector --capture ---timePart ---Other Parts --Lots of Parts
StarterGui -TermGUIs --Title --Status --CaptureTime ---LocalScript
In the LocalScript (Inside StarterGui > TermGUIs > CaptureTime): while wait() do wait() if game.Workspace.Terminal.captured.timePart.BrickColor == BrickColor.new("Toothpaste") then script.Parent.Text = "Capture Time: "..tostring(game.Workspace.SOtime.Value) elseif game.Workspace.Terminal.captured.timePart.BrickColor == BrickColor.new("New Yeller") then script.Parent.Text = "Capture Time: "..tostring(game.Workpace.RaiderRime.Value) end end
----------
Script inside the button (Workspace > Terminal > Button > Script): term = game.Workspace.Terminal blok = term.captured
SOcaptured = false RaiderCaptured = false
script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked) a = game.Players[playerWhoClicked.Name] if a.TeamColor == BrickColor.new("Pastel Blue") or a.TeamColor == BrickColor.new("Bright green") then --SO Team Color if game.Workspace.Terminal.captured.timePart.BrickColor ~= BrickColor.new("Toothpaste") then if a.PlayerGui.TermGUIs.CaptureTime.Text ~= "0" then for i,v in pairs(game.Players:GetChildren()) do v.PlayerGui.TermGUIs.Status.Text = "Being Captured for SO" for p = 15,1,-1 do v.PlayerGui.TermGUIs.CaptureTime.Text = "Capture Time: "..p wait(1) end for k,j in pairs(blok:GetChildren()) do j.BrickColor = BrickColor.new("Toothpaste") end SOcaptured = true RaiderCaptured = false v.PlayerGui.TermGUIs.Status.Text = "Starlight Order" SOcaptured = true while SOcaptured == true and game.Workspace.SOtime.Value <= 1200 do wait(1) game.Workspace.SOtime.Value = game.Workspace.SOtime.Value + 1 print(game.Workspace.SOtime.Value) end end end end
elseif a.TeamColor == BrickColor.new("Bright yellow") then --Enemy team Color if game.Workspace.Terminal.captured.timePart.BrickColor ~= BrickColor.new("New Yeller") then if a.PlayerGui.TermGUIs.CaptureTime.Text ~= "0" then for i,v in pairs(game.Players:GetChildren()) do v.PlayerGui.TermGUIs.Status.Text = "Being Captured for Raiders" for p = 15,1,-1 do v.PlayerGui.TermGUIs.CaptureTime.Text = "Capture Time: "..p wait(1) end for k,j in pairs(blok:GetChildren()) do j.BrickColor = BrickColor.new("New Yeller") end v.PlayerGui.TermGUIs.Status.Text = "Raiders" RaiderCaptured = true SOcaptured = false while RaiderCaptured == true and game.Workspace.RaiderTime.Value <= 1200 do wait(1) game.Workspace.SOtime.Value = game.Workspace.RaiderTime.Value + 1 end end end end else for i,v in pairs(game.Player:GetChildren()) do v.PlayerGui.TermGUIs.Status.Text = "ERROR: Invalid Team" end end end)
----------
If anyone can help me, that would be awesome. I highly doubt anyone will though because it is a really long thread and long scripts, but I am just trying to give as much detail as I can to help solve the issues. Thanks! (Whoever reads all this, you're awesome)
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 26 Dec 2014 04:58 PM |
| not going to read the whole thing, but i suggest doing spawn functions and debounce |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 04:59 PM |
Thanks for the suggestion, anyone else?
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:04 PM |
Bump
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
Vekiro
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 4253 |
|
|
| 26 Dec 2014 05:04 PM |
- Be Pragmatist, the master scripter. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 05:05 PM |
why are you not indenting why are you not giving more info finally why are you posting this here there's a forum for this kind of thing and C&G isn't it
~CoffeeFlux. For you. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 05:05 PM |
change toothpaste with mouthwash 11/10 |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:05 PM |
Posted this here and in scripters. I knew that C7Gers use Terms for their bases and stuff, so let's hope someone here knows what they are talking about.
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:06 PM |
I didn't indent because i copy pasted it from studio and you can't indent in the forums.
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 05:06 PM |
Please just post in scripters.
~CoffeeFlux. For you. |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:06 PM |
Also, what more info do you need? I gave the issues, the scripts, and the entire Explorer.
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:11 PM |
If you want indents, go here: PASTE in that BIN /4jkSQSK2 -- Main Term script /pcJBJAbJ -- LocalScript Inside the Captured Timer GUI
Thanks.
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:21 PM |
Test it here if you need to: http://www.roblox.com/Script-Testing-place?id=177649942
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 05:22 PM |
ugh
just give me the place if you want |
|
|
| Report Abuse |
|
|
DPLX
|
  |
| Joined: 10 Dec 2014 |
| Total Posts: 768 |
|
|
| 26 Dec 2014 05:25 PM |
god no dont post it in scripters
scripting helpers was merged so there really isnt a place to ask anymore which sucks.
put prints in the lines of code and figure out where it stops printing, and work backwards. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 05:31 PM |
| This is ironic considering your name is DevTools. |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 26 Dec 2014 05:39 PM |
@Leading I'm a high detailed, advanced builder but I am only an intermediate scripter since I started 3 months ago.
|| devTools | get out me mooms car | broom broom || |
|
|
| Report Abuse |
|
|