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: Terminal Help!

Previous Thread :: Next Thread 
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:16 PM
wait(5)
--PUT EXACT TEAM NAMES--
raiders = "Hostile/Raider"
none = "Visitors/Allies"
group = "Furious Empire"
------VARIABLES--------
guiraid = script.GuiRaid.Value
mainteam = group
notcap = none
raid = raiders
for _, play in ipairs(game.Players:children()) do gui = play.PlayerGui.TerminalStats print("Gui Identified") end
-------Current Owner---------
currentowner = script.CurrentOwner.Value
currentowner = mainteam
script.CurrentOwner.Changed:connect(function() print"Current Owner Changed" script.Parent.BrickColor = game.Teams[currentowner].TeamColor print("Changed BrickColor") end)
script.GuiRaid.Changed:connect(function()
if guiraid == true then
print"Raiders Have Flag, Counting"
gui.TimerFrame.Visible = true
for i = 1200, 1, -1 do
if guiraid then
gui.TimerFrame.Time.Text = tostring(i)
wait(1)
elseif not guiraid then gui.TimerFrame.Time.Text = "1200"
end
end
local m = Instance.new("Message", workspace)
print"Raiders Won"
m.Text = raiders, "Won this time! Try Harders Next Time", group
wait(60)
m.Text = "Now, Crashing All Raiders"
wait(8)
for i, v in ipairs(game.Players:children()) do if v.TeamColor == game.Teams[raid].TeamColor then
script.Crash:clone().Parent = v.Backpack
print"Crashed"
end
end
elseif guiraid == false then
print"Stopping"
gui.TimerFrame.Visible = false
gui.TimerFrame.Time.Text = "1200"
end
end)
script.Parent.Touched:connect(function(cha)
print"Touched"
if cha.Parent:FindFirstChild("Humanoid") then
local char = cha.Parent
print"Char Found"
local plr = game.Players[char.Name]
print"Player Found"
if plr.TeamColor == game.Teams[currentowner].TeamColor then
print"Cant double-capture"
elseif plr.TeamColor == game.Teams[notcap].TeamColor then
print"Neutral"
elseif plr.TeamColor == not game.Teams[currentowner].TeamColor then
print"Capturing"
if plr.TeamColor == game.Teams[raid].TeamColor then
print"Player Is Raider"
currentowner = raid
guiraid = true
gui.Stats.StatsText = raiders,"owns the Terminal"
elseif plr.TeamColor == game.Teams[group].TeamColor then
print"Player Is FE"
currentowner = mainteam
guiraid = false
gui.Stats.StatsText = group,"owns the Terminal"
end
end
end
end)
Problems:
The touched function works, it prints up to Player found, and does nothing.
I tried to do it myself with changing value's for .Changed:connect it doesnt work.
Report Abuse
LordDeoxidize is not online. LordDeoxidize
Joined: 18 Jul 2013
Total Posts: 669
09 Aug 2013 01:18 PM
Bump
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:20 PM
bump
Report Abuse
TheHuntedGame is not online. TheHuntedGame
Joined: 06 Aug 2013
Total Posts: 405
09 Aug 2013 01:21 PM
Output?

I mean Venusaur...with a question mark - Add precisely 11,745 to my post count - Alt of boynedmaster
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:24 PM
Just the prints..
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:29 PM
bump
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:32 PM
b1
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:36 PM
b2
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:39 PM
b3
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:42 PM
b4
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:44 PM
b5
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:46 PM
b6
Report Abuse
TheHuntedGame is not online. TheHuntedGame
Joined: 06 Aug 2013
Total Posts: 405
09 Aug 2013 01:49 PM
Don't you think after 6 bumps you'd think people don't know how to fix this?

I mean Venusaur...with a question mark - Add precisely 11,745 to my post count - Alt of boynedmaster
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:50 PM
^
I dont care, nobody atleast has the common sense to try
b7
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:56 PM
b8
--Going on a record with bumps
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
09 Aug 2013 01:57 PM
If it's not a syntax error, it's a logical error.
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 01:58 PM
Where?
I dont want what type of error.
I WANT WHAT THE ERROR IS.
b9
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 02:05 PM
b10
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
09 Aug 2013 02:06 PM
Examine the code! There is nothing logically wrong with it, thus, it must be something on your part that we cannot see.
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 02:09 PM
^
I DID!!!
TELL ME SOME STUFF YOU NEED TO KNOW.
I WILL TELL YOU.
b11
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 02:10 PM
b12
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 02:13 PM
b13
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
09 Aug 2013 02:23 PM
b14
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