|
| 13 May 2016 09:35 PM |
| If there is a few errors in the output, yet your scripts work perfectly fine, will that result in lag or broken servers/scripts? |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 May 2016 09:37 PM |
I'm guessing your using free models....
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 09:39 PM |
No, I am not using free models. The error that keeps showing up is: "Humanoid is not a valid member of Workspace" There's really no issue with this error, my script works perfectly fine when I run it, I was just wondering if errors caused lag or something like that. |
|
|
| Report Abuse |
|
|
|
| 13 May 2016 09:47 PM |
Oh then its an event, I wouldn't worry but it looks messy.
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 09:48 PM |
Why would there ever be a humanoid object in workspace?
|
|
|
| Report Abuse |
|
|
Naquadria
|
  |
| Joined: 03 Nov 2010 |
| Total Posts: 11936 |
|
|
| 13 May 2016 09:52 PM |
| Shouldn't be a problem unless the problem is caused by a loop, or its still spewing out stuff into output. |
|
|
| Report Abuse |
|
|
Zawie
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 6338 |
|
|
| 13 May 2016 09:56 PM |
Fix it. ew. don't just leave disgusting error in your output like that. It will make debugging harder in the future
I am 99% sure this bug is caused by a lava brick type thing you are using a touched function and not checking if a humanoid exists before doing damage to it. |
|
|
| Report Abuse |
|
|
|
| 13 May 2016 09:57 PM |
@Zawie, ye an event.
e.g.
Brick.Touched:connect(function(Hit) if Brick.Parent[Hit.Name] then -- this would error end end)
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 09:58 PM |
unless there is a part same as hit.name within the parent
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 09:58 PM |
| I am checking for humanoid under the Parent of the hit object. |
|
|
| Report Abuse |
|
|
|
| 13 May 2016 10:00 PM |
local function steppedOn(part1) if part1.Parent.Humanoid.Value.Value == 1 then script.Parent:Destroy() end end
script.Parent.Touched:connect(steppedOn)
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 10:02 PM |
| Is there a way to check for a child of an object with the name of "Humanoid?" |
|
|
| Report Abuse |
|
|
|
| 13 May 2016 10:12 PM |
use this
local function steppedOn(part1) if part1.Parent and part1.Parent:FindFirstChild("Humanoid") and part1.Parent.Humanoid.Value.Value == 1 then script.Parent:Destroy() end end
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 10:23 PM |
Thanks so much Brick Wizard, no errors! :D I'm kind of a beginner at this kind of stuff, thanks for everyone's help!! |
|
|
| Report Abuse |
|
|