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: How to refresh an humanoid?

Previous Thread :: Next Thread 
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
14 Apr 2016 10:29 AM
Hey, I tried changing humanoid's Body Colors with (humanoid is in Lighting if it matters)
but the color doesnt update, I mean it does update according to the properties, but the color doesnt actually change in the displayed model.
The reason it's in lighting is because it's a 3D model GUI that appears on the screen.

here's the script to change the body colors.


wait(1)
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game.Lighting["Preview"..player.Name]["Body Colors"]:Remove()
game.Lighting.CustomizeCharacter.SkinToneCollection.Asian:Clone().Parent = game.Lighting["Preview"..player.Name]
game.Lighting["Preview"..player.Name].Asian.Name = "Body Colors"

end)




Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
14 Apr 2016 11:31 AM
bump..



Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Apr 2016 11:40 AM
i just reformatted your code.

--server script

local re = game.ReplicatedStorage:WaitForChild("RemoteEvent")
local storage = game.ServerStorage

re.OnServerEvent:connect(function(plr,arg)
local preview = storage["Preview"..plr.Name]
preview["Body Colors"]:Destroy()
storage.CustomizeCharacter.SkinToneCollection.Asian:Clone().Parent = preview
preview.Asian.Name = "Body Colors"
end)

--local script

local re = game.ReplicatedStorage:WaitForChild("RemoteEvent")

script.Parent.MouseButton1Click:connect(function()
re:FireServer()
end)


Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 02:48 PM
Thank you for your code, but it still only changes on the properties, it doesnt actually change in the game. :\



Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
15 Apr 2016 02:53 PM
Okay im till confused. What do you actually want to happen?


Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 02:54 PM
Could it be that it does change but the 3D model doesnt update?
I'm using this for the 3D Model :
http://www.roblox.com/Roblox-3D-GUI-Module-item?id=159576724


How would I update the model?



Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
15 Apr 2016 03:02 PM
you probably want to update the model in the gui instead of the lighting


Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 03:09 PM
Thing is there is no model in the gui, it displays it from lighting(I changed it to display from ServerStorage now tho.)

But you just gave me an idea. I'll try something.



Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 03:17 PM
Nope, It didnt work, I will try explaining the best I can now.

I am using a 3D Moudle to display models ( the preview character) on the screen and rotate it. (link: http://www.roblox.com/Roblox-3D-GUI-Module-item?id=159576724)


Now I made a skin tone selector, When I try to go ahead and change the skin tone it does update on the properties of Body Colors but it doesnt update on the model itself that is displayed on the screen, If I go to the properties it would show me that the color has changed, but there is no difference on screen.

I'm sorry that I might be confusing but I'm trying my best to explain my problem.



Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 03:42 PM
bump.?




Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
15 Apr 2016 03:43 PM
well local scripts wont work for the server storage. you already tried destroying the model in lighting, cloning the name one, the having the module load that new model into the gui?


Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 03:51 PM
Yes, That's the idea you gave me.

I tried making it clone the model into the PlayerGui but it didnt work.
The properties still change but there is no difference in the displayed model.

I also tried making it so it'll "reset" the 3d model with
model["Body Colors"].Changed:connect(function() -- model is the characted cloned.
Model3D:SetActive(false) -- that is used to activate\deactivate the model display.
Model3D:SetActive(true)
end)



Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
15 Apr 2016 03:53 PM
I could add you to my friends and give you access to MP Studio just so you can understand better and look around if you want.



Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
16 Apr 2016 02:31 AM
bump



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