• SetModel With Bodygroup
    0 replies, posted
Hi! im using these player models [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=204120003"]http://steamcommunity.com/sharedfiles/filedetails/?id=204120003[/URL] and i was wondering how to set the model on the player with a certain bodygroup? Would it be like this [CODE]ply:SetModel( "example/path" ) ply:SetBodygroup( 1 )[/CODE] [editline]14th May 2015[/editline] ^^ sorted that but i need help now with something else! how could i change the bodygroup with a NumSlider? this doesnt work [CODE] local NumSlider = vgui.Create( "DNumSlider", Frame ) NumSlider:SetPos( ScreenScale( 360 ), ScreenScale( 50 ) ) NumSlider:SetWide( 250 ) NumSlider:SetText( "Suit Design" ) NumSlider:SetMin( 1 ) NumSlider:SetMax( 14 ) NumSlider:SetDecimals( 0 ) NumSlider.OnValueChanged = function() local NumValue = NumSlider:GetValue() LocalPlayer():SetBodygroup( 1, NumValue ) end [/CODE]
Sorry, you need to Log In to post a reply to this thread.