#CAN SOMEONE PLEASE HELP ON THIS

1 messages · Page 1 of 1 (latest)

primal iris
#

jumpScareEvent.OnClientEvent:Connect(function()
local monster = Workspace:FindFirstChild("Monster")
if not monster then return end

local head = monster:FindFirstChild("Head")
if not head then return end

local camPart = getOrCreateJumpscareCam(head)

-- Setup camera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = camPart.CFrame
local originalFOV = camera.FieldOfView
camera.FieldOfView = 100

createScreamSound(head)
createFlash()

-- Camera shake (RenderStepped)
local shakeTime = 0.6
local shakeStrength = 0.2
local startTime = tick()

local shakeConnection
shakeConnection = RunService.RenderStepped:Connect(function()
    local elapsed = tick() - startTime
    if elapsed > shakeTime then
        shakeConnection:Disconnect()
        return
    end

    local offset = Vector3.new(
        math.random(-100, 100) / 500 * shakeStrength,
        math.random(-100, 100) / 500 * shakeStrength,
        math.random(-100, 100) / 500 * shakeStrength
    )

    camera.CFrame = camPart.CFrame + offset
end) is the parts that aren't working I have a part inside of hte head as the camera can anyone fix it?
#

I removed the if not return ends and it still doesen't work

#

Roblox jumpscare like the rake

primal iris
#

CAN SOMEONE PLEASE HELP ON THIS