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 » Scripting Helpers
Home Search
 

Re: Help with Instance.new()

Previous Thread :: Next Thread 
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
16 Mar 2014 09:41 AM
This must work:

if game.Workspace.Playerparts == nil then
Model = Instance.new("Model", game.Workspace)
Model.Name = Playerparts
end

I get this in the output:

15:31:37.336 - Playerparts is not a valid member of Workspace
Report Abuse
GamingOwl is not online. GamingOwl
Joined: 18 Feb 2014
Total Posts: 350
16 Mar 2014 09:42 AM
if game.Workspace.Playerparts == nil then
Model = Instance.new("Model", game.Workspace)
Model.Name = "Playerparts" -- forgot the ""
end
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
16 Mar 2014 09:43 AM
if not game.Workspace:FindFirstChild("Playerparts") then
Report Abuse
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
16 Mar 2014 09:45 AM
Thank you!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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