How Do I make Shake Effect like DarkSci-Facility?

how can i make shake screen effect like Shutdown , Dark Sci-Facility ect.???

why do i need to have 125 characters??? lol

I’m not so sure but I think it’s impossible now, LocalEventScript is broken

1 Like

but shutdown shake still working???

probably ask tony if he knows, it has to be in “EventScript” like he did

1 Like

it’s fixed

1 Like

Made this in like 30 min and it works in LocalEventScript

--[[
Credit is not required if you use this,
but please give credit if you use any code from it
]]--

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Debris = game:GetService("Debris")
local ContentProvider = game:GetService("ContentProvider")

local Player = Players.LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Char:WaitForChild("Humanoid")
local BLANK_VECTOR = Vector3.new()

function GetRandomNumber(a, b)
	local RandomObject = Random.new()
	return RandomObject:NextNumber(a, b)
end

function ShakeScreen()
	-- "Math" taken from DSF and neatened up --
	local Duration = GetRandomNumber(20, 25) / 10
	local Intensity = GetRandomNumber(15, 25) / 10
	local ShakeVolume = 0.4 * Intensity

	local ShakeSound = Instance.new("Sound")
	ShakeSound.SoundId = "rbxassetid://153274423"
	ShakeSound.Pitch = GetRandomNumber(90, 110) / 100
	ShakeSound.Volume = ShakeVolume
	ShakeSound.Parent = script

	ShakeSound:Play()

	local FinishTime = tick() + Duration
	while RunService.Heartbeat:Wait() and (FinishTime - tick() > 0) and Humanoid.Health > 0 do
		ShakeSound.Volume = ShakeVolume * (FinishTime - tick())
		Humanoid.CameraOffset = Vector3.new(
			(GetRandomNumber(-5, 5) / 20) * (FinishTime - tick()),
			(GetRandomNumber(-5, 5) / 20) * (FinishTime - tick()),
			(GetRandomNumber(-5, 5) / 20) * (FinishTime - tick())
		)
	end
	ShakeSound:Destroy()
end

Humanoid.Died:Connect(function()
	Humanoid.CameraOffset = BLANK_VECTOR
end)

spawn(function()
	while true do
		wait(GetRandomNumber(5, 7))
		ShakeScreen()
	end
end)
1 Like

Where did you use ContentProvider? ;w;

I used it to load the sound but removed it lol

1 Like