Jumpscare is flickery everytime it plays

This is a FNaF based game, and all assets are imported images with UIs and i want to fix a problem, read down below.:arrow_down:

  1. What do you want to achieve? Keep it simple and clear!
  • Smooth jumpscare with no flicker.
  1. What is the issue? Include screenshots / videos if possible!
  • My game’s assets are imported images and Jumpscares are image by image but the problem is that Roblox causes it to Flicker everytime it plays.
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
  • Yeah i looked on the Developer Hub but nothing was useful.

If anyone will be able to help me, i’d be so happy.:pray:

Thanks🤝

  • Pop

Can you upload an image/screenshot and show the script ur using to show the jumpscare?

I’ll show it once i’ll get on my pc.

I’m using a RemoteEvent and LocalScript.

  • LocalScript
local function WFreddy()
	local img = {
		A = "rbxassetid://10402611663",
		B = "rbxassetid://10402611342", 
		C = "rbxassetid://10402611055", 
		D = "rbxassetid://10402610632", 
		E = "rbxassetid://10402610037", 
		F = "rbxassetid://10402609487", 
		G = "rbxassetid://10402609073", 
		H = "rbxassetid://10402608574", 
		I = "rbxassetid://10402607973", 
		K = "rbxassetid://10402607405", 
		L = "rbxassetid://10402606892", 
	}

	local function jumpscare()
		script.Parent.Visible = true
		wait(0.045)
		script.Parent.Image = img.A
		wait(0.045)
		script.Parent.Image = img.B
		wait(0.045)
		script.Parent.Image = img.C
		wait(0.045)
		script.Parent.Image = img.D
		wait(0.045)
		script.Parent.Image = img.E
		wait(0.045)
		script.Parent.Image = img.F
		wait(0.045)
		script.Parent.Image = img.G
		wait(0.045)
		script.Parent.Image = img.H
		wait(0.045)
		script.Parent.Image = img.I
		wait(0.045)
		script.Parent.Image = img.K
		wait(0.045)
		script.Parent.Image = img.L
		wait(0.045)
		game["Teleport Service"]:Teleport(10401013516, game.Players.LocalPlayer)
		game["Teleport Service"]:SetTeleportGui(game.Players.LocalPlayer.PlayerGui.GameOverGui)
		script.Parent.Visible = false
		script.Parent.Image = img.A
	end
	jumpscare()
end

game.ReplicatedStorage.Jumpscare.OnClientEvent:Connect(function(jumpscareType)
	if jumpscareType == "WitheredFreddy" then
		workspace.Jumpscare:Play()
		WFreddy()
	elseif jumpscareType == "ToyChica" then
		workspace.Jumpscare:Play()
		TChica()
	elseif jumpscareType == "ToyBonnie" then
		workspace.Jumpscare:Play()
		TBonnie()
	elseif jumpscareType == "ToyFreddy" then
		workspace.Jumpscare:Play()
		TFreddy()
	elseif jumpscareType == "GoldenFreddy" then
		workspace.Jumpscare:Play()
		goldenFreddy()
	elseif jumpscareType == "WitheredChica" then
		workspace.Jumpscare:Play()
		WChica()
	elseif jumpscareType == "WitheredBonnie" then
		workspace.Jumpscare:Play()
		WBonnie()
	elseif jumpscareType == "WitheredFoxy" then
		workspace.Jumpscare:Play()
		WFoxy()
	elseif jumpscareType == "Mangle" then
		workspace.Jumpscare:Play()
		mangle()
	elseif jumpscareType == "Puppet" then
		workspace.Jumpscare:Play()
		puppet()
	end
end)

I don’t know what’s the issue for it to be flickery. I tried the ContentProvider too, it still does that.

Deleted all the others functions because it takes too much space

can you show an image of the game being flickery?

Nevermind, i used ContentProvider wrong

it had to be:

local Assets = {icon89, icon91, icon92,icon93,icon94,icon95,icon96,icon97,icon98,icon99,icon100,icon101,icon102}

for i,v in pairs(Assets)do
	ContentProvider:PreloadAsync({Assets[i]})
	print('Preloaded asset '..v)
end

instead of:

local Assets = {icon89, icon91, icon92,icon93,icon94,icon95,icon96,icon97,icon98,icon99,icon100,icon101,icon102}

for i,v in pairs(Assets)do
	ContentProvider:PreloadAsync(v)
	print('Preloaded asset '..v)
end

My bad.
Thanks for the help anyways

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.