Hello :) I'm having an issue at the moment with the player's colour
not being shown on the preview panel. I've put the code below in DPointShopPreview
but have not had any success. Any advice? Thanks! :D
[code]local PlayerColor = LocalPlayer():GetPlayerColor()
function DModelPanel:GetPlayerColor()
return Vector( PlayerColor.r, PlayerColor.g, PlayerColor.b )
end[/code]
You are applying the function GetPlayerColor to panel, not to his entity
[QUOTE=gonzalolog;51085440]You are applying the function GetPlayerColor to panel, not to his entity[/QUOTE]
I tried but when I added .Entity it threw this -attempt to index field 'Entity' (a nil value)
Then DModelPanel it's not a DModelPanel panel...Try GetEntity or try to see what really is DModelPanel var...Because .Entity is the panel entity
Thanks a lot for the help! The problem was resolved. :)
Sorry, you need to Log In to post a reply to this thread.