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: Create New Part ... Edit Part's Properties... Help

Previous Thread :: Next Thread 
dmjoe is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. MrMcAero
Joined: 21 Apr 2012
Total Posts: 671
29 Apr 2012 08:13 AM
try
local c = Instance.new("Part")

- Cheers!
Report Abuse
MrMcAero is not online. 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 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 08:14 AM
He wants it in script builder.
Report Abuse
dmjoe is not online. 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
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
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
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