#fps cutscene is not working in shiftlock and in firstperson

22 messages · Page 1 of 1 (latest)

snow tusk
#
-- Variables

local Camera = game.Workspace.CurrentCamera
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CutsceneCamEvent = ReplicatedStorage.RemoteEvent
local Runservice = game:GetService("RunService")


local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local HumanoidRootPart= Character:WaitForChild("HumanoidRootPart")
local Humanoid = Character:WaitForChild("Humanoid")

local PlayerModule = require(player.PlayerScripts:WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()

local animation = script.Animation

CutsceneCamEvent.OnClientEvent:Connect(function()
            controls:Disable()
            local animationEnded = false
        
        
            local Animation = Humanoid:LoadAnimation(animation)
        
            Animation:Play()
            
    
            
            Animation.Stopped:Connect(function()
                animationEnded = true
            end)
    while animationEnded == false do
        print("ENDED2")
                Camera.CFrame = Character:WaitForChild("Head").CFrame
                Runservice.RenderStepped:Wait()
            end
            if animationEnded == true then
                print("ended")
                controls:Enable()
                Camera.CameraType = Enum.CameraType.Custom
            end
        
    
    --if not then it will do camera cutscene not fps cutscene
end)
last lynx
#

Why not set back the camera to default

snow tusk
#

what

#

default is not an option in cameratype my man

last lynx
#

I didn't see anything wrong in the video tho

#

Other than the camera not going back to the playerCharacter's default view

snow tusk
#

like when you first person it will spins

last lynx
#

Then idrk the problem :')

snow tusk
#

oh no

last lynx
#

Dw, jst wait until a higher grade helps you out

snow tusk
#

better example here again

brave timber
#

try not to shifelock?

snow tusk
#

yea but it is for horror game and the horror game is in first person

brave timber
#

can you like shiftlock? cus player already in firstperson

#

disble

#

disble shift

snow tusk
#

nah man first person

#

@everyone

#

:()

#

😮

#

:0