Hi, I’m making my own gamemode and I’m super confused about something.
I want to make my own variable that’s a boolean. It would be set to true whenever a player respawns and to false whenever another function happens.
I don’t know how to make the variable though, that’s specific to a player. I can’t find any answers ANYWHERE, and I know it has to be super simple and it’s frustrating the hell out of me.
edit: Also why the hell is this breaking my gamemode? Sorry but it’s really frustrating me… it seems like any if statement is breaking my init.lua
function TestProtected( ply ) if ply:protected = true then ply:PrintMessage(3, "You are protected.") else ply:PrintMessage(3, "You aren't safe.") end end concommand.Add("amprotect", TestProtected)