--//Services
local Players = game:GetService("Players")
--// UI Variables
local plr = Players.LocalPlayer
local PlayerGui = plr:WaitForChild("PlayerGui")
local MainUI = PlayerGui:WaitForChild("MainUI")
local Frame = MainUI:WaitForChild("Frame")
local Frame1 = Frame:WaitForChild("Frame")
local ViewportFrame = Frame1:WaitForChild("ViewportFrame")
local Char = {}
function Char:CharDisplay()
local camera = Instance.new("Camera")
local Character = script.StarterCharacter:Clone()
local Pos = Character.PrimaryPart.Position
local Ori = Character.PrimaryPart.Orientation
ViewportFrame.CurrentCamera = camera
Character.Parent = ViewportFrame
camera.CFrame = CFrame.new(Vector3.new(Pos.X, Pos.Y, Pos.Z + 5), Pos)
end
function Char:Int()
self:CharDisplay()
end
return Char
How can I make it look at the camera? Like just dead looking at you.