I want the camera to show the character
The issue is that my head is still invisible, i have no idea why
I’ve looked for solutions on the Developer hub haven’t found anything, i’ve tried kicking the player out of 1st person but that doesn’t work.
my code (local script)
local camera = workspace.CurrentCamera
local cashier = workspace:WaitForChild("CashierCamera")
local TS = game:GetService("TweenService")
local RS = game:GetService("ReplicatedStorage")
local players = game.Players
local player = players.LocalPlayer
local character = player.Character
local plrtrigger = RS.PlrCameraTrigger
local plrend = RS.PlrCameraEnded
plrtrigger.OnClientEvent:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
player.CameraMaxZoomDistance = 7
player.CameraMinZoomDistance = 7
local num = math.random(1, #players:GetChildren())
local selectedplr = players:GetChildren() [num]
local char = selectedplr.Character
local plrcamera = char:FindFirstChild("PlrCamera")
local tweeninfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false)
TS:Create(camera, tweeninfo, {CFrame = plrcamera.CFrame}):Play()
plrend.OnClientEvent:Connect(function()
player.CameraMaxZoomDistance = 0.5
player.CameraMinZoomDistance = 0.5
camera.CameraType = Enum.CameraType.Custom
end)
end)