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: Weird New Part

Previous Thread :: Next Thread 
Renonic is not online. Renonic
Joined: 01 Dec 2013
Total Posts: 1372
07 Oct 2016 08:46 PM
When I do

Instance.new("Part", Workspace)

and then

myPart = Instance.new("Part", Workspace)

it creates a second part. Why is this happening?
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
07 Oct 2016 08:46 PM
Why do you think it's happening? Instance.new() creates a /new instance/.
Report Abuse
Renonic is not online. Renonic
Joined: 01 Dec 2013
Total Posts: 1372
07 Oct 2016 08:47 PM
b1
Report Abuse
Renonic is not online. Renonic
Joined: 01 Dec 2013
Total Posts: 1372
07 Oct 2016 08:48 PM
So would I not put instance? I am trying to get part = mypart without creating a new part
Report Abuse
Renonic is not online. Renonic
Joined: 01 Dec 2013
Total Posts: 1372
07 Oct 2016 08:50 PM
Oh wait, should # not ### "New"?
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
07 Oct 2016 08:51 PM
If you don't store the return value of your first call to Instance.new(), you can't recover it. If you want myPart to be one in the same with your first call, you'll just have to use assign it to myPart in the first place.
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
07 Oct 2016 08:52 PM
Because you're doing:

Instance.new("Part", Workspace)
Instance.new("Part", Workspace)

Then asking: "Why is it making two parts?"
Report Abuse
Renonic is not online. Renonic
Joined: 01 Dec 2013
Total Posts: 1372
07 Oct 2016 09:24 PM
game.Workspace.Baseplate.Transparency = 0.5 works on the baseplate.

Do I do myPart.Transparency = 0.5 to make myPart transparent because it's not working for me.
Report Abuse
EatCheetos is not online. EatCheetos
Joined: 05 May 2015
Total Posts: 127
07 Oct 2016 09:27 PM
Here's what I would try:

myPart = Instance.new("Part", workspace)
myPart.transparency = .5
Report Abuse
Renonic is not online. Renonic
Joined: 01 Dec 2013
Total Posts: 1372
07 Oct 2016 09:34 PM
ooo I got it
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