Viewport Frame Scripting Issue

Im trying to make where it fully shows the character in a gui,
but its not showing in the viewport frame.

Code:

local Player = game.Players.LocalPlayer
local thing = Player.Character or Player.CharacterAdded:Wait()
repeat wait() until game.Players.LocalPlayer.Character
game.Players.LocalPlayer.Character.Archivable = true

local clone = game.Players.LocalPlayer.Character:Clone()
clone.Name = ""
clone.HumanoidRootPart.CFrame = script.Parent.Part.CFrame * CFrame.new(0,3,0)

clone.Parent = script.Parent

game.Players.LocalPlayer.Character.Archivable = false
1 Like

Could you explain in a more detailed what what you are trying to achieve, are you trying to have an image of the player character displayed on a gui?

This is better than using viewport frames, see the link