1
0
Fork 0
made-in-akira/3d_models/figura-old/Noelle/script.lua

40 lines
1.3 KiB
Lua

nameplate.All:setText(
toJson({
{ text = 'h', color = '#f695a4' },
{ text = 'o', color = '#ffd69c' },
{ text = 'l', color = '#fffaac' },
{ text = 'i', color = '#b4faac' },
{ text = 'd', color = '#acfaf6' },
{ text = 'a', color = '#acb2ff' },
{ text = 'y', color = '#d5aeff' },
{ text = 'g', color = '#ffaec5' },
{ text = 'i', color = '#f695a4' },
{ text = 'r', color = '#ffd69c' },
{ text = 'l', color = '#fffaac' },
{ text = '1', color = '#b4faac' },
{ text = '2', color = '#acfaf6' },
{ text = '2', color = '#acb2ff' },
{ text = '5', color = '#d5aeff' },
})
)
nameplate.Entity:setOutline(true)
nameplate.Entity:setOutlineColor(44, 13, 56)
vanilla_model.PLAYER:setVisible(false)
if host:isHost() then
function events.render(delta, context)
local head = models.model.Head -- model part here
local visible = not (renderer:isFirstPerson() and context == "OTHER")
if client:hasShaderPack() then
if visible then
head:opacity(1)
else
head:opacity(0)
end
else
head
:opacity(1)
:setVisible(visible)
end
end
end