Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
kiref81 -24
2 years ago
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

Log in to vote
0
Answered by
TGazza 1336 Moderation Voter
2 years ago

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! :)

Ad

Answer this question