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 » Scripters
Home Search
 

Re: Just need a little help...

Previous Thread :: Next Thread 
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 06:44 PM
Uhh, hi. I came here because I need some help in Studio.
I've been trying really hard, but have gotten nowhere. I was wondering how one might be able to change the StarterCharacter to a custom mesh. I've tried various things, but they've all proven unsuccessful. Could someone tell me how I can do this? Thanks in advance.
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 06:47 PM
Like a morph? Check the free models for those and study the scripts to learn :)




Report Abuse
ghostboy1234567 is not online. ghostboy1234567
Joined: 17 Nov 2012
Total Posts: 13
25 Jun 2016 06:49 PM
Here you can do this.
1. Put the mesh in the server storage!
2. Put the following into a script in workspace

CODE:
while true do
wait()
g = game.Players:GetChildren()
for i=1,#g do
h = game.ServerStorage.Mesh:Clone()
h.Parent = g[i].Character.Torso
end
end
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 06:51 PM
^ Only if he's talking about a true mesh and not the colloquial morph.


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 06:54 PM
Thanks for this, although I have one question. Where might I insert the mesh into this script?
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 06:55 PM
In his script, put the mesh in the ServerStorage. Make sure it's named Mesh, or you change the name in the script itself.


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:02 PM
If the mesh has an additional decal (the mesh itself is just completely grey), where should I shove that in?
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 07:03 PM
Well if the mesh is already in the ServerStorage, you wouldn't need to add this into the script. Put it instead into in the TextureId of the mesh itself.


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:03 PM
Ermm, also, when I inserted the name Mesh into the ServerStorage, I tested it, and the mesh continuously cloned itself. (yes, this is my first attempt at scripting something. Ever.)
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 07:11 PM
Use something like this... untested btw

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
local mesh = game.ServerStorage.Mesh:clone()
local mesh.Parent = c.Torso
for i,v in pairs(c:GetChildren()) do
if v:IsA"BasePart" then
v.Transparency = 1
end
end
end)
end)


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:16 PM
Looks like a decent script there, although it says there's an error on line 4 (the period between mesh and Parent seems to be the cause [red underline]). Perhaps this is Studio's mistake?
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 07:18 PM
Nope sorry, remove the "local", so it's just

mesh.Parent = c.Torso


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:21 PM
Seems to be partially working - the mesh itself won't show, but the character (besides the face and hats) is completely invisible. I named the mesh 'Mesh' and typed Mesh into the ServerStorage parentheses. Did I do something wrong?
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 07:25 PM
local mesh = game.ServerStorage.YOUR_MESH_NAME_HERE:clone()


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:31 PM
Alright, here's what I've got. The character's still invisible and the mesh still won't appear

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
local mesh = game.ServerStorage.Name_Of_The_Mesh:clone()
mesh.Parent = c.Torso
for i,v in pairs(c:GetChildren()) do
if v:IsA"BasePart" then
v.Transparency = 1
end
end
end)
end)

Anything wrong?
Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:34 PM
(note that I actually named the mesh Name_Of_The_Mesh)
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 07:36 PM
You actually have a MeshId in the mesh, not just a texture?


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 07:38 PM
Wait... I think I figured out the issue. I'm pretty sure I didn't put the mesh into ServerStorage correctly. What I did was:
ServerStorage
---*Model* Name_Of_The_Mesh
------*MeshPart* MeshPart
Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
25 Jun 2016 08:00 PM
Alright, when I spawn in (and respawn), the mesh spawns (with the texture), just not actually... attached to the character, which is kinda important. It spawns in a corner (I'm just using an empty baseplate for now) and falls over. Any solutions?
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
25 Jun 2016 08:18 PM
You should just be cloning the mesh, not the part/model the mesh is in.

Put the mesh itself in the ServerStorage. It shouldn't be a child of a model or part or anything other than the ServerStorage.


Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
27 Jun 2016 09:24 AM
So I should just click on the model and press Ctrl+U to separate it from the mesh, correct?
Report Abuse
BanTech is not online. BanTech
Joined: 31 Dec 2015
Total Posts: 886
27 Jun 2016 10:50 AM
The problem is you don't have a Mesh, you have a MeshPart. They are completely different Instances. Copy the ID from the MeshPart, insert a new SpecialMesh, set the mesh ID in the SpecialMesh to the ID you got earlier. It's then this SpecialMesh that you need to name and put directly into ServerStorage.
Report Abuse
MyNameIsFattsy is not online. MyNameIsFattsy
Joined: 17 Jul 2010
Total Posts: 19
28 Jun 2016 02:32 PM
Alright, so I removed the MeshPart, copied the MeshId (and the TextureId), created a SpecialMesh, named it, and pasted the IDs into their respective places. However, it doesn't seem to be working. Did I mess up somewhere or forget something?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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