Line 3: [lua] local controller = body.VelocityController [/lua]
--Some stuff
Line 14: [lua] function CheckVitalSigns() [/lua]
--Some stuff
Lines 17-20: [lua] if controller == nil then
controller = create("VelocityController")
controller.Parent = body
end [/lua]
--More stuff, including end of CheckVitalSigns
Lines 30-32: [lua]while true do
sleep(0.1)
CheckVitalSigns() [/lua]
--Even more stuff
Lines 46-48: [lua] if not controller then CheckVitalSigns() end
if thedude.Position.x > body.Position.x then
controller.Velocity.x = 5.0 [/lua]
Output: Script:48: attempted index of non-table
>
--Some stuff
Line 14: [lua] function CheckVitalSigns() [/lua]
--Some stuff
Lines 17-20: [lua] if controller == nil then
controller = create("VelocityController")
controller.Parent = body
end [/lua]
--More stuff, including end of CheckVitalSigns
Lines 30-32: [lua]while true do
sleep(0.1)
CheckVitalSigns() [/lua]
--Even more stuff
Lines 46-48: [lua] if not controller then CheckVitalSigns() end
if thedude.Position.x > body.Position.x then
controller.Velocity.x = 5.0 [/lua]
Output: Script:48: attempted index of non-table
>