Need help putting this script into lua

function SpawnedProp(ply, model, ent)
if (!ply:IsAdmin()) then
ent:SetHealth(200)
end
if ent:Health() = 0 then
ent:Remove()
end
end
hook.Add(“PlayerSpawnedProp”, “playerSpawnedProp”, SpawnedProp)

basically iam running darkrp and want to put this script into action but im not sure how and my techie is offline

thankyou

ps: i want the outcome to be that guests props blow up after damage is dealt

Check this out…

sorry that has not helped in the slightist

lua/autorun

k found the folder, how do i save as a .lua rename it? or save it in that folder as a .txt

Huh? Did you even click on the link?

You rename the file, yes.

thanks a million! and yes ofc i clicked it but i just was not 100% thanks anyway x

[editline]05:35PM[/editline]

o god it didn’t work big sad face!