Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make an NPC jumpscare the player when it is attacking it?

I have made an AI that finds you and kills you. The problem is that I can't find a proper way to make a jumpscare when it attacks you. The Jumpscare should zoom to the AI's head and make a loud screaming sound!

Here's is the attack function:

function attack(target)
	if (myRoot.Position - target.Position).magnitude < 5 then
		if target.Parent ~= nil then
			target.Parent.Humanoid:TakeDamage(100)
		end
	end
end

1 answer

Should make a local decal avaible basicly if you dont want a in game npc jumpscare

This discussion is preserved as it was. New answers, comments, and votes are closed.