I want it so that the character model rotates in a viewport frame. I can’t seem to make the model appear in the viewport frame. I had a script for rotating objects and tried messing with that script and I can’t seem to figure it out I also looked it up I found no help there. The character model is a dummy and a player model.
Here is the script i tried with it
cam.CameraType = "Scriptable"
script.Parent.CurrentCamera = cam
local rotValue = 0
game:GetService("RunService").RenderStepped:Connect(function()
local cframe = script.Parent.Bob.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(rotValue), math.rad(180)) * CFrame.new(0, -0.2, 2)
cam.CFrame = CFrame.new(cframe.p, script.Parent.Bob.HumanoidRootPart.CFrame)
rotValue = rotValue + 1
end)