Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is this the right way to do this? (Custom Character)

Asked by 6 years ago

This is a local script inside starterplayer

local Player = game.Players.LocalPlayer
while not Player.Character do wait() end
local Character = Player.Character
local Camera = workspace.CurrentCamera
local ReplicatedStorage = game:GetService("ReplicatedStorage")


--[Camera]--
local CamPoint = ReplicatedStorage.CustomCam:Clone()
CamPoint.Parent = Camera
Camera.CameraType = "Scriptable"
Camera.CameraSubject = CamPoint
Camera.CFrame = 
    CFrame.new(CamPoint.Position)* CFrame.Angles(0, 110, 0)*CFrame.new(0,0,0)

--[NPC]--
local NPC = ReplicatedStorage.DefaultNPC:Clone()
NPC.Parent = Camera

am i doing this wrong? will this get stolen through FE or will this break or is there a better way to do it?

0
this look fine GameBoyOtaku 63 — 6y

Answer this question