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: I tried making my own terminal

Previous Thread :: Next Thread 
cody20175 is not online. cody20175
Joined: 23 Jul 2010
Total Posts: 6958
15 Aug 2013 07:16 PM
For raids, and stuff. It didn't work

timeuntilwin = 300
totaltime = 300

raidteamcolor = "Bright red"
defendteamcolor = "Bright blue"
h = Instance.new("Hint")
n= "Mid gray"

function OnTouched(hit)

if hit.Parent:findFirstChild("Humanoid") ~= nil then
if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(raidteamcolor) then
script.Parent.BrickColor = BrickColor.new(raidteamcolor)
end

if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(defendteamcolor) then
script.Parent.BrickColor = BrickColor.new(defendteamcolor)
timeuntilwin = totaltime
for i, v in pairs(game.Workspace:GetChildren()) do
if v:IsA("Hint") then
v:remove()
end
end
end

end

end

script.Parent.Touched:connect(OnTouched)

while true do
wait()
if script.Parent.BrickColor == BrickColor.new(raidteamcolor) then
h.Parent = game.Workspace
h.Text = "Red team wins in".." "..timeuntilwin

if timeuntilwin <= totaltime and timeuntilwin > 0 then
wait(1)
timeuntilwin = timeuntilwin - 1
end

if timeuntilwin == 0 then
h:remove()

winmsg = Instance.new("Message")
winmsg.Parent = game.Workspace
winmsg.Text = "Red team has won!"
wait(5)
winmsg:remove()

script.Parent.BrickColor = BrickColor.new(n)
timeuntilwin = totaltime
end
end
end
Report Abuse
cody20175 is not online. cody20175
Joined: 23 Jul 2010
Total Posts: 6958
15 Aug 2013 07:18 PM
If someone could redirect me to a working terminal, or fix the script, I'd appreciate it.
Report Abuse
cody20175 is not online. cody20175
Joined: 23 Jul 2010
Total Posts: 6958
16 Aug 2013 10:44 AM
qq
Report Abuse
mrwar117 is not online. mrwar117
Joined: 16 Oct 2009
Total Posts: 224
16 Aug 2013 11:26 AM
You have to give us somewhere to start, whats giving errors etc tell us!
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
16 Aug 2013 11:27 AM
"I tried making my own terminal"
High doubt.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=109931263
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
16 Aug 2013 12:40 PM
One second I think I know what's wrong. No promises though
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
16 Aug 2013 12:44 PM
@john

lol that's nice.
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