dmjoe
|
  |
| Joined: 01 May 2009 |
| Total Posts: 2387 |
|
|
| 29 Apr 2012 07:54 AM |
I was working on a Universally connected brick for SB... Some of the properties work, some don't. What happens with this script is the part insert's to my head position, Its not anchored, it is cancollide... It's name is still 'Part' and not 'TestBrick' It's connections are all default, and It does not have my universal connections. Please help.
c = Instance.new("Part")
c.Parent = game.Workspace c.Position = game.Workspace.dmjoe.Head.Position c.Anchored = false c.CanCollide = true c.Neutral = false c.Name = TestBrick c.BackSurface = Universal c.BottomSurface = Universal c.FrontSurface = Universal c.LeftSurface = Universal c.RightSurface = Universal c.TopSurface = Universal
~According to astronomy, when you wish upon a star; you are actually a few million years late. The star is dead. Just like your dreams.~ |
|
|
| Report Abuse |
|
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 29 Apr 2012 07:55 AM |
Universal is nil, you defined it as variable, make it a string.
TestBrick too - variable, make it string (put "" around it) |
|
|
| Report Abuse |
|
|
dmjoe
|
  |
| Joined: 01 May 2009 |
| Total Posts: 2387 |
|
|
| 29 Apr 2012 07:57 AM |
So simply
c = Instance.new("Part")
c.Parent = game.Workspace c.Position = game.Workspace.dmjoe.Head.Position c.Anchored = false c.CanCollide = true c.Neutral = false c.Name = "TestBrick" c.BackSurface = "Universal" c.BottomSurface = "Universal" c.FrontSurface = "Universal" c.LeftSurface = "Universal" c.RightSurface = "Universal" c.TopSurface = "Universal"
~According to astronomy, when you wish upon a star; you are actually a few million years late. The star is dead. Just like your dreams.~ |
|
|
| Report Abuse |
|
|
dmjoe
|
  |
| Joined: 01 May 2009 |
| Total Posts: 2387 |
|
|
| 29 Apr 2012 08:08 AM |
Erm... That still does not work...
~According to astronomy, when you wish upon a star; you are actually a few million years late. The star is dead. Just like your dreams.~ |
|
|
| Report Abuse |
|
|
MrMcAero
|
  |
| Joined: 21 Apr 2012 |
| Total Posts: 671 |
|
|
| 29 Apr 2012 08:13 AM |
try local c = Instance.new("Part")
- Cheers! |
|
|
| Report Abuse |
|
|
MrMcAero
|
  |
| Joined: 21 Apr 2012 |
| Total Posts: 671 |
|
|
| 29 Apr 2012 08:13 AM |
Also,
if your playing it on Test>Play Solo, remember, the code will run BEFORE your character is loaded. So, add like a wait(5) before all your code.
- Cheers! |
|
|
| Report Abuse |
|
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 29 Apr 2012 08:14 AM |
| He wants it in script builder. |
|
|
| Report Abuse |
|
|
dmjoe
|
  |
| Joined: 01 May 2009 |
| Total Posts: 2387 |
|
|
| 29 Apr 2012 09:29 AM |
Yes... he does... and he, can't get it to work :L
~According to astronomy, when you wish upon a star; you are actually a few million years late. The star is dead. Just like your dreams.~ |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2012 09:34 AM |
uhmm Idk if this will help, but like 2 years ago I had made a GUI that lets you create a custom part.. may or my not help..
http://www.roblox.com/Educational-guis-maybe-item?id=29629842
site.Players.callmeduck2.PostCount.Value=site.Players.callmeduck2.PostCount.Value+1 |
|
|
| Report Abuse |
|
|