Help with ViewPortFrame

I’m making a avatar changer with a rig showing you your avatar within the ui.
Inside the rig model I changed the color of the skin tones but it’s not showing the skin tone in the viewpoint Frame it just shows the grey dummy.

local Viewport = script.Parent.ViewportFrame;
local Dummy = Viewport:WaitForChild("Dummy");
local Sword = Dummy:WaitForChild("HumanoidRootPart");

local Camera = Instance.new("Camera")
Camera.Parent = Viewport
Viewport.CurrentCamera = Camera

local c = 0;

game:GetService("RunService").Heartbeat:Connect(function()
	local cframe = Sword.CFrame * CFrame.Angles(0, math.rad(c), 0) * CFrame.new(0, 0, -5) 
	cframe = CFrame.new(cframe.p, Sword.Position)
	Viewport.CurrentCamera.CFrame = cframe;
	c = c + 1;
end)

Do you have any sort of color corrector effect adorned to the camera?

No I do not have any sort of color corrector effect adorned to the camera

Add the WorldModel to your viewport, and then parent your model to it

oh, you also NEED to apply ANY changes from original model to viewport one, thats how it works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.