feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39
@ -1984,8 +1984,9 @@ export function registerRobloxShim(lua, opts) {
|
|||||||
}
|
}
|
||||||
if (primId != null) {
|
if (primId != null) {
|
||||||
const part = partById.get(Number(primId));
|
const part = partById.get(Number(primId));
|
||||||
if (part?.Touched) part.Touched.Fire(hrp);
|
// НЕ фейерим part.Touched — это делает fireTargetEvent
|
||||||
if (humanoid.Touched) humanoid.Touched.Fire(part);
|
// в routeEvent('touch'). Иначе двойной счёт.
|
||||||
|
if (part && humanoid.Touched) humanoid.Touched.Fire(part);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// GUI-клик: GameRuntime шлёт {type:'guiClick', localId, id}
|
// GUI-клик: GameRuntime шлёт {type:'guiClick', localId, id}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user