-- Check if "powerkiller" already exists and is valid, and if so, kill it if powerkiller and IsValidEntity(powerkiller) then powerkiller:Remove() end -- Create a new entity of class "move_rope" and store it in the "powerkiller" reference powerkiller = Entities:CreateByClassname("move_rope") powerkiller:Spawn() -- Define the KillPowerups function to remove all powerup runes function KillPowerups() local rune = Entities:FindByClassname(nil, "item_powerup_rune") while rune do rune:Remove() rune = Entities:FindByClassname(nil, "item_powerup_rune") end -- Return -1 to run this function every game tick return -1 end -- Make it a think function to run every game tick powerkiller:SetContextThink("KillPowerups", KillPowerups, 0)