Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Rainbow Trail Body
- @persist [O]:entity [X,Y,M,D]:number
- #255,0,0 red
- #255,125,0 orange
- #255,255,0 yellow
- #0,255,0 green
- #0,125,255 blue
- #125,0,255 purple
- Me=owner()
- if (first()) {
- runOnTick(1)
- holoCreate(0)
- holoCreate(1)
- holoCreate(2)
- holoCreate(3)
- holoCreate(4)
- holoCreate(5)
- holoCreate(6)
- holoCreate(7)
- holoCreate(8)
- holoCreate(9)
- holoCreate(10)
- holoCreate(11)
- holoCreate(12)
- holoCreate(13)
- holoCreate(14)
- holoCreate(15)
- holoCreate(16)
- holoCreate(17)
- holoAlpha(0,0)
- holoAlpha(1,0)
- holoAlpha(2,0)
- holoAlpha(3,0)
- holoAlpha(4,0)
- holoAlpha(5,0)
- holoAlpha(6,0)
- holoAlpha(7,0)
- holoAlpha(8,0)
- holoAlpha(9,0)
- holoAlpha(10,0)
- holoAlpha(11,0)
- holoAlpha(12,0)
- holoAlpha(13,0)
- holoAlpha(14,0)
- holoAlpha(15,0)
- holoAlpha(16,0)
- holoAlpha(17,0)
- holoEntity(0):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(1):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(2):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(3):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(4):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(5):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(6):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(7):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(8):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(9):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(10):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(11):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(12):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(13):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(14):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(15):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(16):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- holoEntity(17):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
- O = owner()
- X = 0
- Y = 0
- M = 10
- D = 18
- }
- if (!changed(O:pos())) {
- holoPos(0,O:pos()+vec(cos(X)*D,sin(Y)*D,0))
- holoPos(1,O:pos()+vec(cos(X)*D,sin(Y)*D,4))
- holoPos(2,O:pos()+vec(cos(X)*D,sin(Y)*D,8))
- holoPos(3,O:pos()+vec(cos(X)*D,sin(Y)*D,12))
- holoPos(4,O:pos()+vec(cos(X)*D,sin(Y)*D,16))
- holoPos(5,O:pos()+vec(cos(X)*D,sin(Y)*D,20))
- holoPos(6,O:pos()+vec(cos(X)*D,sin(Y)*D,24))
- holoPos(7,O:pos()+vec(cos(X)*D,sin(Y)*D,28))
- holoPos(8,O:pos()+vec(cos(X)*D,sin(Y)*D,32))
- holoPos(9,O:pos()+vec(cos(X)*D,sin(Y)*D,36))
- holoPos(10,O:pos()+vec(cos(X)*D,sin(Y)*D,40))
- holoPos(11,O:pos()+vec(cos(X)*D,sin(Y)*D,44))
- holoPos(12,O:pos()+vec(cos(X)*D,sin(Y)*D,48))
- holoPos(13,O:pos()+vec(cos(X)*D,sin(Y)*D,52))
- holoPos(14,O:pos()+vec(cos(X)*D,sin(Y)*D,56))
- holoPos(15,O:pos()+vec(cos(X)*D,sin(Y)*D,60))
- holoPos(16,O:pos()+vec(cos(X)*D,sin(Y)*D,64))
- holoPos(17,O:pos()+vec(cos(X)*D,sin(Y)*D,68))
- }
- else {
- holoPos(0,O:pos()+vec(0,0,3))
- holoPos(1,O:pos()+vec(0,0,6))
- holoPos(2,O:pos()+vec(0,0,9))
- holoPos(3,O:pos()+vec(0,0,12))
- holoPos(4,O:pos()+vec(0,0,0))
- holoPos(5,O:pos()+vec(0,0,0))
- holoPos(6,O:pos()+vec(0,0,0))
- holoPos(7,O:pos()+vec(0,0,0))
- holoPos(8,O:pos()+vec(0,0,0))
- holoPos(9,O:pos()+vec(0,0,0))
- holoPos(10,O:pos()+vec(0,0,0))
- holoPos(11,O:pos()+vec(0,0,0))
- holoPos(12,O:pos()+vec(0,0,0))
- holoPos(13,O:pos()+vec(0,0,0))
- holoPos(14,O:pos()+vec(0,0,0))
- holoPos(15,O:pos()+vec(0,0,0))
- holoPos(16,O:pos()+vec(0,0,0))
- holoPos(17,O:pos()+vec(0,0,0))
- }
- X+=M
- Y+=M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement