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 » Scripters
Home Search
 

Re: What would happen if there was Lua on Real life?

Previous Thread :: Next Thread 
dap300 is not online. dap300
Joined: 23 Nov 2009
Total Posts: 4738
23 Jul 2011 10:28 AM
I would do:

a = game.Workspace:GetChildren()

for i = 1,#a do
if a[i].Name == "humanoid" then
a[i].Health = math.huge
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
23 Jul 2011 10:29 AM
I would do

for i,v in pairs(Universe.UniverseServer:GetChildren()) do
if (v:GetPlayer().Name == "dap300") then
v:CloseConnection();
end end
Report Abuse
Varp is not online. Varp
Joined: 18 Nov 2009
Total Posts: 5333
23 Jul 2011 10:32 AM
There are too many threads like this. If you thought for even a moment before posting this, you would realize that the world would probably end.
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
23 Jul 2011 10:33 AM
*creates a really oversized nuke*
*accidentally touches it*
oops
Report Abuse
jordan4762 is not online. jordan4762
Joined: 08 Sep 2008
Total Posts: 4116
23 Jul 2011 11:10 AM
I would ...
a = World:FindFirstChild("AlienWare")
b = a:GetChildren()
c = world["North America"]["United States of America"]
d = c["South Carolina"]:GetChildren()
if d.Name = "Jordan4762's House" then
wait(1)
else
end

if b.className = Laptop and b.Type = M18X then
b:clone().Parent = d
else
end

-ITS FREEEEEEEEEEEE
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
23 Jul 2011 11:12 AM
@Jordan: Too many errors... o_e
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
23 Jul 2011 11:18 AM
game.Workspace.agent767.Name = "IT`S FR"..string.rep("E",10^10)
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
23 Jul 2011 11:19 AM
for _,v in pairs(yourMom:children()) do
v:remove()
end
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
23 Jul 2011 11:21 AM
@Soul
You didnt define yourMom duh
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
23 Jul 2011 11:22 AM
local person = Universe:GetHumanFromRobloxian("Aaaboy97")
person:GetBankAccount():SetBalance(math.huge)
Universe.SupremeRuler = person

setmetatable(Universe, {__newindex = function() error("supreme leader does not allow", 2) end, __metatable = "supreme leader does not allow"})
Report Abuse
wowzee is not online. wowzee
Joined: 02 Apr 2010
Total Posts: 22692
23 Jul 2011 12:05 PM
:P
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
23 Jul 2011 12:35 PM
Universe:Restart()

-Legend-
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
23 Jul 2011 12:53 PM
[ Content Deleted ]
Report Abuse
The2nd5oo is not online. The2nd5oo
Joined: 01 Dec 2010
Total Posts: 1599
23 Jul 2011 12:56 PM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=47922793
Report Abuse
dylanbuider is not online. dylanbuider
Joined: 14 Jun 2008
Total Posts: 17141
23 Jul 2011 02:44 PM
ROBLOXians are Humanoids, not people.
Report Abuse
Jopc67 is not online. Jopc67
Joined: 10 Oct 2009
Total Posts: 5550
23 Jul 2011 03:05 PM
I already have an alienware m18x. :D
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
23 Jul 2011 03:16 PM
Well, the earth would slow down, and the sun would go out, freezing everything.

_____________
Turtle power!
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
23 Jul 2011 03:42 PM
-- Universe::Restart restarts the universe completely.
-- Universe::Cancel cancels the last action that was done on the universe.
-- Userdata.Locked defines who (Owner, Admins, Moderators, People) can access/edit the userdata and it's metatable. Default value is 'People', meaning everyone can edit it. There is also an identical value for every table.
-- Universe::Lock locks the universe, it's metatable, every child of the universe and it's metatable, every property of the universe/it's children and every method/function of the universe. The owner can bypass all of these restrictions, same for admins (unless the owner changed their permissions).
-- Universe::Unlock undos everything that was done by Universe::Lock. This is only useful for the owner, since he'll be the only one able to use it, if the universe is locked, since this method would be locked too. Admins could use this too, unless their permissions were edited.

-- The owner of the universe is defined in Universe.Owner. It is an usedata that much be a 'Person'. Persons are all located in Universe.People. By default, this value contains the value 'Nobody', meaning anyone has Owner permissions. It can be changed by anyone, even if there is already an owner (unless if it is locked or something), so beware. The owner can bypass anything he wants to bypass. Locked metatables don't stop him. Errors don't stop his scripts (in a reasonnable way). Locked objects are just ignored by everything he codes.
-- The admins of the universe can only be changed by the owner only (unless there is no owner, then, anyone can). They have many powers, but not as much as the owner.
-- Moderators of the universe have permissions that can be edited by admin or the owner (unless there is no owner and no admins).
-- People of the universe are all located in Universe.People. You can get a person from his ROBLOX username using People::GetPersonFromROBLOXUsername(username).

-- To set permissions, use Universe::SetPermissions(Group, Permissions).


-- Now, here is my script. Remember the rules defined up there. ;)

local me = Universe.Persons:GetPersonFromROBLOXUsername("JulienDethurens")

Universe.Owner = me -- Now, I am the owner of the universe.

Universe:Lock() -- Now, none of you can use any member of the universe or edit it's metatable, neither the universe itself. See Universe::Lock for more informations.

setmetatable(Universe, { -- Set additional restrictions, just to make sure, even though Universe::Lock already did the job.
__index = function()
error "Only JulienDethurens is allowed to use this member, and if he needs to, he can bypass this, since he's the owner."
end;
__newindex = function()
error "Only JulienDethurens is allowed to edit this member/create a new member, and if he needs to, he can bypass this, since he's the owner."
end;
__metatable = function()
error "Only JulienDethurens is allowed to edit the metatable of the universe, and if he needs to, he can bypass this, since he's the owner."
end;
})

-- Now, I ruined this thread for everyone, since I just own the universe completely. =D

-- Note that if you want to be an admin, ask me. I'll probably accept. Rofl.
Report Abuse
The2nd5oo is not online. The2nd5oo
Joined: 01 Dec 2010
Total Posts: 1599
23 Jul 2011 04:08 PM
Julien, y u no post dat here:

http://www.roblox.com/Forum/ShowPost.aspx?PostID=47922793

Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
23 Jul 2011 05:11 PM
This right?

for i = 1,#World:GetChildren() do
wait(300)
World:GetChildren()[i].Position = World.pauljkl.Van
end
Report Abuse
CiosModule is not online. CiosModule
Joined: 20 Jul 2011
Total Posts: 203
23 Jul 2011 05:57 PM
for i, v in pairs(universe.milkyWay:findMostUselessNode("Roblox")) do
v.torture("electricchair")
end

yo = universe.milkyWay:getHottestNode()
yo.partner = universe:findEpicGuy("CiosModule")

universe.delete:returnUselessShetBut(toHumanName("CiosModule"))
Report Abuse
cymru72 is not online. cymru72
Joined: 26 Jan 2008
Total Posts: 4362
23 Jul 2011 05:58 PM
We'd all complain how limited the API is :P
Report Abuse
dap300 is not online. dap300
Joined: 23 Nov 2009
Total Posts: 4738
23 Jul 2011 06:22 PM
Universe.Owner = World.People:GetHumanByRobloxUsername("dap300")
local owner=World.People:GetHumanByRobloxUsername("dap300")
owner.BankAccount.Money = math.huge
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
23 Jul 2011 06:22 PM
while true do
end
Report Abuse
iLimitedU is not online. iLimitedU
Joined: 25 Jul 2010
Total Posts: 10133
23 Jul 2011 06:47 PM
People = game.Workspace:GetChildren()
for i = 1, #People do
People[i].Humanoid.Health = 0
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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