The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



2DWorlds Forums
Need help - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Help (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=21)
+--- Thread: Need help (/showthread.php?tid=8505)



Need help - Dangerdan - 10-26-2011

Hello. I know LUA pretty well on roblox, and I'm used to the workspace on it, similar to this one. When I run 'game.World.Err:Remove()' on the command line, it says 'Err is not a child of world' Any clues on what I'm doing wrong? Im using this as a test to make a helicopter regen.


RE: Need help - Qwertygiy - 10-26-2011

Here's the code Paradox was attempting to fix for you:

[lua]
Heli = game.Environment.Helicopter
function OnCollide(collide)
h = Heli:clone()
h.Helip.Position = Vec2D(324.62,51.54)
if game.World:getChild("Helicopter") then
game.World.Helicopter:Remove()
end
end

link(script.Parent.Collide, OnCollide)
[/lua]
____________________________________________
[lua]
local enabled = true
link(script.Parent.Collided, function(hit)
if hit.Parent:isA("Character") and enabled then
local copter = game.Storage.Helicopter
local c = copter:clone()
local oldcop = game.World:getChild("Helicopter")
if oldcop then
oldcop:remove()
end
enabled = false
script.Parent.Color = Color(255, 0, 0)
sleep(3)
c.Parent = game.World
c:makeJoints()
script.Parent.Color = Color(0, 255, 0)
enabled = true
end end)
[/lua]

I think the makeJoints part needs work; I might be remembering it wrong.