diff --git a/src/editor/engine/lua/RobloxShim.js b/src/editor/engine/lua/RobloxShim.js index c5e6e12..1e511d6 100644 --- a/src/editor/engine/lua/RobloxShim.js +++ b/src/editor/engine/lua/RobloxShim.js @@ -1817,10 +1817,11 @@ export function registerRobloxShim(lua, opts) { }); }); // Эффекты частиц (confetti, sparks и т.п.) — как game.scene.spawnParticles. + // BabylonScene._spawnParticleEffect ждёт payload.type и payload.position. global.set('__rbxl_spawn_particles', (kind, x, y, z, duration, count) => { send('scene.particles', { - kind: String(kind || 'confetti'), - pos: { x: +x, y: +y, z: +z }, + type: String(kind || 'confetti'), + position: { x: +x, y: +y, z: +z }, duration: Number(duration) || 2, count: Number(count) || 1, });