Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make body part changer in script what deferant BrickColor and Mesh pls help me?

game.ReplicatedStorage.Events.FemaleEvent.OnServerEvent:connect(function(player)
	local Button = game.StarterGui.Menu.Frame.Female
	local g = Mesh.MeshId.new"http://www.roblox.com/asset/?id=83001675"

	local char = player.Character
	
	char.Head.Mesh.MeshId = g   
end)

its work with BrickColor but with Mesh dont work i dont know why?

1 answer

✓ Accepted answer

The way you define the new MeshId is a little skewed on line 3

Change the following :

game.ReplicatedStorage.Events.FemaleEvent.OnServerEvent:connect(function(player)
    local Button = game.StarterGui.Menu.Frame.Female
   --[[
	Change the following line: 
	local g = Mesh.MeshId.new"http://www.roblox.com/asset/?id=83001675"

	To: (or simply copy and paste this script.)
	]]
	local g = "http://www.roblox.com/asset/?id=83001675"

    local char = player.Character

    char.Head.Mesh.MeshId = g   
end)

Hope this helps! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.