I want to create a tempbrick for a player due to there being very few surfaces for placing one on to start with. However, when I try to create this tempbrick, the player can't actually move it and it isn't actually theirs.
(%temp = new fxDtsBrick()
{
client = %cl;
colorID = %cl.currentColor;
datablock = %cl.inventory[%cl.currInv];
}).setTransform(%end@" 0 0 1 "@(%angle/$PI/2));
%cl.brickgroup.add(%temp);
%pl.tempbrick = %temp;
%cl, %pl, %end, and %angle are all defined prior, and refer to the client, player, position, and rotation respectively.
What am I missing?