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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Why isn't this game script working?

Previous Thread :: Next Thread 
tigerr666 is not online. tigerr666
Joined: 13 Aug 2009
Total Posts: 1665
15 Sep 2012 01:59 PM
So I made this short laser tag game script (not finished, trying to test) and it never works. And says nothing in the output. What I mean is, it doesn't generate anything from lighting, or show any messages. Can anyone help? Heres the script:

while true do
wait(3)
p = game.Players:GetChildren()
for i = 1, #p do
w = game.Workspace:GetChildren()
for i = 1, #w do
l = game.Lighting:GetChildren()
for i = 1, #l do
local m = math.random(1,2)
local msg = Instance.new("Message")
msg.Parent = w[i]
wait(3)
if m == 1 then
msg.Text = "Loading field..."
wait(1)
l[i].LHills:clone().Parent = w[i].Maps --This doesn't work, any one know how to fix?
msg.Text = "Players will now be teleported!"
wait(2)
p[i].Character:MoveTo(Vector3.new(943.6, 927.2, 1383))
wait(1)
l[i].WeaponGui:clone().Parent = p[i].PlayerGui
wait(4)
p[i].PlayerGui.WeaponGui:remove()
msg.Text = "The game will last 3 minutes! Get as many kills as you can!"
wait(4)
msg:remove()
wait(200)
w[i].LHills:remove()
end
if m == 2 then
l[i].LFlats:clone().Parent = w[i].Maps
msg.Text = "Players will now be teleported!"
wait(2)
p[i].Character:MoveTo(Vector3.new(943.6, 875.2, 1383))
wait(1)
l[i].WeaponGui:clone().Parent = p[i].PlayerGui
wait(4)
p[i].PlayerGui.WeaponGui:remove()
msg.Text = "The game will last 3 minutes! Get as many kills as you can!"
wait(4)
msg:remove()
wait(200)
w[i].LFlats:remove()
end
end
end
end
end
Report Abuse
tigerr666 is not online. tigerr666
Joined: 13 Aug 2009
Total Posts: 1665
15 Sep 2012 02:05 PM
bump
Report Abuse
bob354293 is not online. bob354293
Joined: 26 Oct 2008
Total Posts: 2609
15 Sep 2012 02:11 PM
I would be able to fix this, but i hasnt scripted in like a year, sowweh :(
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
15 Sep 2012 02:11 PM
any output?
Report Abuse
tigerr666 is not online. tigerr666
Joined: 13 Aug 2009
Total Posts: 1665
15 Sep 2012 02:27 PM
I fixed it. At the beggining, I had to put "msg.Parent = nil"
Its still extremely glitchy though =/
Report Abuse
Cat4044 is not online. Cat4044
Joined: 20 Jul 2012
Total Posts: 3
17 Sep 2012 12:15 PM
Hi My Script Isnt Working... I Put In My Name Where Its Supposed To (Im Doing Admin Script) And I Save It And Go On Play And No Admin :( What Do I Do?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
17 Sep 2012 01:28 PM
You Stop Capitalizing Every Word, that's what you do.
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