|
| 12 Sep 2013 04:46 PM |
Okay, so this is a studio script/brick spawn.
Instance.new("Brick", Workspace) Cframe (4, 1, 2)
If this wont work, or something stupid happens, then don't worry. I'm still learning to script, and I got the resizing thing from Builders Test Server. |
|
|
| Report Abuse |
|
|
Xeptix
|
  |
| Joined: 14 Mar 2013 |
| Total Posts: 1115 |
|
|
| 12 Sep 2013 04:48 PM |
You have a lot to learn... Instance.new("Brick", Workspace) Cframe (4, 1, 2)
You mean
Instance.new("Brick", Workspace).CFrame(4, 1, 2)
When accessing a property (in this case CFrame*), you need to do object.property, not object property. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 04:48 PM |
| Instance.new("Part", Workspace).CFrame =CFrame.new(4,1,2) |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 12 Sep 2013 04:49 PM |
| properties are not functions and 'Brick' is not a class |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 04:49 PM |
CFrame is for position Vector3 is for size and position
Instance.new("Part", game.Workspace).Position = Vector3.new(4,1,2)
|
|
|
| Report Abuse |
|
|
Xeptix
|
  |
| Joined: 14 Mar 2013 |
| Total Posts: 1115 |
|
|
| 12 Sep 2013 04:49 PM |
Also, you're not assigning it correctly. You're doing object.CFrame(cords) when you need to do object.CFrame = CFrame.new(cords) |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 04:49 PM |
Instance.new("Part", game.Workspace).Size = Vector3.new(4,1,2)
sorry lol |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 04:50 PM |
Actually make sure that the formfactor is custom or symmetric
InstanceVar = Instance.new("Part", game.Workspace) InstnaceVar.FormFactor = "Custom" InstanceVar.Size = (4,1,2)
|
|
|
| Report Abuse |
|
|
Xeptix
|
  |
| Joined: 14 Mar 2013 |
| Total Posts: 1115 |
|
|
| 12 Sep 2013 04:51 PM |
| And I also just realized that you said Brick instead of Part... |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 04:52 PM |
Dang it I'm making so many mistakes. InstanceVar = Instance.new("Part", game.Workspace) InstnaceVar.FormFactor = "Custom" InstanceVar.Size = Vector3.new(4,1,2) |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 06:20 PM |
p = Instance.new("Part", game.Workspace) p.Parent = game.Workspace -- Won't spawn without parent p.FormFactor = Enum.Symmetric -- Enum something... Hmmmmmm p.Size = Vector3.new(4,1,2) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Sep 2013 06:21 PM |
Notice that Instance.new takes the optional second argument as a parent. And you don't need enums |
|
|
| Report Abuse |
|
|