Infinite yield possible on 'ServerScriptService.TS:WaitForChild("network")'

This is an issue with the RuntimeLib script that roblox-ts uses
Infinite yield possible on 'ServerScriptService.TS:WaitForChild("network")'
Stack Begin
Script 'ReplicatedStorage.rbxts_include.RuntimeLib', Line 53 - function import
Infinite yield possible on 'ServerScriptService.TS:WaitForChild("network")'
Stack Begin
Script 'ReplicatedStorage.rbxts_include.RuntimeLib', Line 53 - function import
the line in question:
function TS.import(context, module, ...)
for i = 1, select("#", ...) do
module = module:WaitForChild((select(i, ...))) -- THIS LINE
end
function TS.import(context, module, ...)
for i = 1, select("#", ...) do
module = module:WaitForChild((select(i, ...))) -- THIS LINE
end
Solution:
can you recompile?
Jump to solution
11 Replies
Unreal
UnrealOP3mo ago
this breaks my whole game no script can run because the runtimelib is broken
Tester
Tester3mo ago
Do you use flamework?
Unreal
UnrealOP3mo ago
yes i do
Solution
Tester
Tester3mo ago
can you recompile?
Unreal
UnrealOP3mo ago
one second just delete the out directory?
Tester
Tester3mo ago
yezz
Unreal
UnrealOP3mo ago
should i use npx build and select flamework
Tester
Tester3mo ago
just npm run watch ig
Unreal
UnrealOP3mo ago
no more error but one singular script isnt working
Tester
Tester3mo ago
which
Unreal
UnrealOP3mo ago
// isometricCamera/index.ts
// sourced from https://devforum.roblox.com/t/isometric-camera-view/3167056

import { Controller, OnStart } from "@flamework/core";
import { Players, RunService, Workspace } from "@rbxts/services";
import { Event } from "shared/eventLifecycle";
import { constants } from "./constants";

@Controller({})
export class Index implements OnStart {
player: Player | undefined
camera: Camera | undefined
character: Model | undefined
humanoid: Humanoid | undefined
humanoidRootPart: Part | undefined

onStart() {
this.player = Players.LocalPlayer
this.camera = Workspace.CurrentCamera
this.character = this.player.Character
this.humanoid = this.character?.WaitForChild("Humanoid") as Humanoid
this.humanoidRootPart = this.character?.WaitForChild("HumanoidRootPart") as Part

if (this.camera) {
this.camera.CameraType = Enum.CameraType.Scriptable
}
}

@Event(RunService.RenderStepped)
applyIsometricEffect() {
if (
this.camera &&
this.character &&
this.humanoidRootPart
) {
this.camera.CFrame = this.camera.CFrame.mul(constants.cameraCFrameInfo);

const angleRadians = math.rad(constants.cameraAngleOffset);
const offsetX = math.sin(angleRadians) * constants.distance;
const offseZX = math.cos(angleRadians) * constants.distance;

const height = constants.distance * constants.multiply;
const cameraPosition = this.humanoidRootPart.Position.add(new Vector3(offsetX, height, offseZX));

this.camera.CFrame = new CFrame(cameraPosition, this.humanoidRootPart.Position);
}
}
}
// isometricCamera/index.ts
// sourced from https://devforum.roblox.com/t/isometric-camera-view/3167056

import { Controller, OnStart } from "@flamework/core";
import { Players, RunService, Workspace } from "@rbxts/services";
import { Event } from "shared/eventLifecycle";
import { constants } from "./constants";

@Controller({})
export class Index implements OnStart {
player: Player | undefined
camera: Camera | undefined
character: Model | undefined
humanoid: Humanoid | undefined
humanoidRootPart: Part | undefined

onStart() {
this.player = Players.LocalPlayer
this.camera = Workspace.CurrentCamera
this.character = this.player.Character
this.humanoid = this.character?.WaitForChild("Humanoid") as Humanoid
this.humanoidRootPart = this.character?.WaitForChild("HumanoidRootPart") as Part

if (this.camera) {
this.camera.CameraType = Enum.CameraType.Scriptable
}
}

@Event(RunService.RenderStepped)
applyIsometricEffect() {
if (
this.camera &&
this.character &&
this.humanoidRootPart
) {
this.camera.CFrame = this.camera.CFrame.mul(constants.cameraCFrameInfo);

const angleRadians = math.rad(constants.cameraAngleOffset);
const offsetX = math.sin(angleRadians) * constants.distance;
const offseZX = math.cos(angleRadians) * constants.distance;

const height = constants.distance * constants.multiply;
const cameraPosition = this.humanoidRootPart.Position.add(new Vector3(offsetX, height, offseZX));

this.camera.CFrame = new CFrame(cameraPosition, this.humanoidRootPart.Position);
}
}
}
just a script i stole from devforum that makes the camera isometric for some reason its not being executed nothing in the output no errors did some debugging this isnt releated to this issue

Did you find this page helpful?