Set the afterimage effect||doc135484

September 20, 2022


 Entity:setGhost(enable, color, interval, num) 
  • The class to which the function belongs:Entity


Set whether to render the client entity afterimage effect.


Variable name type Description
enable boolean If true, the client entity renders the afterimage effect
color table Color, a color value {r, g, b, a} composed of a table, ranging from 0 to 1
interval int interval
num int quantity

Code Samples

on the client sideglobal script, add a blue afterimage effect to the player entity

World.Timer(10, function()
    Me:setGhost(true, {0/255,200/255,255/255,0.2},20,8)