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 |
|
|
|
| 07 Oct 2016 08:46 PM |
| Why do you think it's happening? Instance.new() creates a /new instance/. |
|
|
| Report Abuse |
|
|
Renonic
|
  |
| Joined: 01 Dec 2013 |
| Total Posts: 1372 |
|
| |
|
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
|
  |
| Joined: 01 Dec 2013 |
| Total Posts: 1372 |
|
|
| 07 Oct 2016 08:50 PM |
| Oh wait, should # not ### "New"? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 07 Oct 2016 09:27 PM |
Here's what I would try:
myPart = Instance.new("Part", workspace) myPart.transparency = .5 |
|
|
| Report Abuse |
|
|
Renonic
|
  |
| Joined: 01 Dec 2013 |
| Total Posts: 1372 |
|
| |
|