How to make slenderman game?

How to make script for slenderman that when you look at him you die?

try this

if player doesn’t die use a remote event and kill player from the server

local cam = workspace.CurrentCamera

local player = game.Players.LocalPlayer

while wait(0.1) do
	local part = (Your  SlenderMan)
			local isOnScreen = select(2, cam:WorldToViewportPoint(part.Position))
			if isOnScreen then
Player.Character:WaitForChild("Humanoid").Health = 0
end

1 Like

Can you tell me how to use a remote event?

Thanks, i’ll try to do it sometime