Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 30 Dec 2014 12:40 PM |
| I would like to make a script where you are able to customize a character. So it would have one model and everyone can use that model and see what they're going to be wearing on their own screen. Can anyone tell me how I'm suppose to do that? |
|
|
| Report Abuse |
|
|
512GB
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 4271 |
|
|
| 30 Dec 2014 12:47 PM |
With a LocalScript, you can do this:
1) Clone the model and parent it into workspace.CurrentCamera 2) Force workspace.CurrentCamera onto that model
Then you can play dress-up with the model by applying a Shirt and Pants. Here's some resources:
http://wiki.roblox.com/index.php?title=CurrentCamera http://wiki.roblox.com/index.php?title=Shirt http://wiki.roblox.com/index.php?title=Pants |
|
|
| Report Abuse |
|
|
listcross
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 1247 |
|
|
| 30 Dec 2014 12:57 PM |
Just as a little elaboration on what 512GB said, Most people would place the model in game.Lighting, and place a LocalScript in StarterPack or StarterGui to clone it into workspace.CurrentCamera. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 30 Dec 2014 01:00 PM |
| ^ lol go home, use replicatedstorage |
|
|
| Report Abuse |
|
|
512GB
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 4271 |
|
|
| 30 Dec 2014 01:00 PM |
I never use ReplicatedStorage nor Lighting. I usually just store the model in memory. |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 30 Dec 2014 01:03 PM |
| Lighting, ReplicatedStorage, Memory, don't matter as long as the end it comes out working, right or wrong? |
|
|
| Report Abuse |
|
|
listcross
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 1247 |
|
|
| 30 Dec 2014 01:03 PM |
ReplicatedStorage?
Ugh. More new stuff
Sucks being gone for a long time |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 30 Dec 2014 01:26 PM |
game.Lighting.IntroParts.Character:Clone().Parent=game.Workspace.CurrentCamera game.Workspace.CurrentCamera=game.Workspace.CurrentCamera.Character.Head
while wait() do game.Workspace.CurrentCamera.CoordinateFrame=CFrame.new(game.Workspace.CurrentCamera.Character.Head.Position) end |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 30 Dec 2014 01:26 PM |
| error with: game.Workspace.CurrentCamera=game.Workspace.CurrentCamera.Character.Head |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
| |
|
512GB
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 4271 |
|
|
| 30 Dec 2014 06:41 PM |
game.Workspace.CurrentCamera=
CurrentCamera is an object, not a property. You can't set an object to another object.
See the properties here: http://wiki.roblox.com/index.php?title=Camera |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 31 Dec 2014 06:50 AM |
| Thank you! Got it working. |
|
|
| Report Abuse |
|
|