openwf/Scripts/samples/Godmode.pluto
2025-10-06 18:27:00 +08:00

15 lines
485 B
Plaintext

-- Modifications to sample scripts will be lost the next time you start the game.
repeat
if avatar := gRegion:GetLocalPlayerAvatar() then
if avatar instanceof LotusVehicleAvatar then
avatar = avatar:GetRider()
end
avatar:DamageControl():GiveTemporaryImmunity(500000, 500000)
end
until not pcall(yield)
local avatar = gRegion:GetLocalPlayerAvatar()
if avatar instanceof LotusVehicleAvatar then
avatar = avatar:GetRider()
end
avatar:DamageControl():RemoveTemporaryImmunity()