so this is my first script maybe someone could use it its not much but a start lol
it spawns an object and make it face the player slowly
nice for chopped heads that need to be looking at the player for jumpscares and such...
have fun
--LUASCRIPT--
--made by dannyxhofleer--
--spawn object and rotate to player--
function objfaceplayerslow_init(e)
end
function objfaceplayerslow_main(e)
if GetPlayerDistance(e)> 201 then
Hide(e)
end
if GetPlayerDistance(e)< 200 then
RotateToPlayerSlowly(e,5)
Show(e)
end
end
pssst