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: Quick question

Previous Thread :: Next Thread 
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
13 May 2016 09:36 PM
depends on the errors lol
Report Abuse
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
13 May 2016 09:37 PM
I'm guessing your using free models....


Report Abuse
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
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
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
13 May 2016 09:47 PM
Oh then its an event, I wouldn't worry but it looks messy.


Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
13 May 2016 09:48 PM
Why would there ever be a humanoid object in workspace?


Report Abuse
Naquadria is not online. 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 is not online. 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
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
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
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
13 May 2016 09:58 PM
unless there is a part same as hit.name within the parent


Report Abuse
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
13 May 2016 09:58 PM
I am checking for humanoid under the Parent of the hit object.
Report Abuse
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
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
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
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
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
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
Prestonpop is not online. Prestonpop
Joined: 01 Feb 2011
Total Posts: 199
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
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