test

<?php 
echo 'WAT';

rararar

moveDirection = Vec3(0, 0, 1) --- Vec3
local speed = 1
local randomSpeed = 1 + math.random() * 0.25
local randomPitch = math.random() * math.pi * 0.000007
local randomYaw = math.random() * math.pi * 0.000007
local randomRoll = math.random() * math.pi * 0.000007
local time = 0

function OnCreate()
    local skin = string.format("version%d", math.random(1, 2))
	Model_SetSkin(Self_GetComponent("Model"), skin)
end

function OnThink(message)

    Self_SetLocalPosition(Self_GetLocalPosition() + moveDirection * randomSpeed * message.deltaTime)
    Self_SetLocalAngles(Self_GetLocalAngles() + Angles(randomPitch, randomYaw, randomRoll))

    time = time + message.deltaTime
    if time > 120 then
        World_DestroyEntity(Self_GetId())
    end

end
$var