roblox-ts

R

roblox-ts

Join

rbxts-object-to-tree doesn't work

If I try to generate TS types I get an error even with the HttpService activated
No description

Rojo build on linux failing

rennie@pop-os:~/Documents/repos/Roblox-Coup-TS$ rojo serve /home/rennie/.aftman/tool-storage/rojo-rbx/rojo/7.5.1/rojo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /home/rennie/.aftman/tool-storage/rojo-rbx/rojo/7.5.1/rojo)...

Constructor parameters are getting assigned after super() is called

it errors cause the sound_ is not yet assigned.
Solution:
the ts doesnt even allow to assign variables before super call
No description

Is it possible to have breakpoints in vscode instead of roblox studio?

Hi, beginner here. I find it time consuming to cross-reference luau and typescript files for the same logic. Is there anyway to simpify this?

Porting default classes with .d.ts

anyone know how to make _feces.feces into feces itself? This will cause error since the library exports the class by default instead of a table/namespace that indexes .feces (which doesn't exist) ```lua --Compiled with roblox-ts v3.0.0 local TS = _G[script] local _feces = TS.import(script, script.Parent, "feces")...

RojoResolver: Invalid configuration! data must have required property 'name'

Solution:
rojo default.project.json requires a name field
No description

Mouse1ButtonClick not firing when nesting connection within promise.

I am unable to get this promise to resolve. do you guys see anything inherently wrong with how i am resolving this promise? selectCard(filterFunc? : (card : ClientCard) => boolean) { const cards = filterFunc === undefined ? this.listOfCardUI : this.listOfCardUI.filter(card => filterFunc(card.getClientCard())) return new Promise<ClientCard>((resolve, reject) => {...
No description

Infinite Yield in `waitForComponent` During Migration from `1.2.3` to `1.3.1`

While migrating Flamework components from version 1.2.3 to 1.3.1, I encountered an issue related to the fix for "references to uninitialized components" introduced in 1.2.4. Problem: - I have a class that initializes during component startup and internally uses waitForComponent. - Due to the changes in component initialization, this now causes an infinite yield....

How to use default values for props in rbxts/React?

Am I properly specifying default values for props in this case? Is the "={}" in the signature necessary?
Solution:
or ```ts interface ICardUiProps{ Size?: UDim2; ...
No description

2d array type help

how do I type out a 2d array where the components are arrays where the second element is the value type of the first component ```ts arrComponentSet(ent, [ [Health, { Current: 10, Max: 100 }],...

TS Index isn't properly translated into luau?

For some reason when my TS code that references an index is translated to luau it addes + 1 to the index. This leads to the card beside the intended card being selected... Is there something I am misundertanding about TS and luau conversion?
Solution:
your cards is probably incorrect and should all be shifted down
Message Not Public
Sign In & Join Server To View
No description

Best way to debug between vscode & roblox studio

Right now I need to set breakpoints in studio. I remeber their being a tool that lets you utilize vscode more when debugging. Any tips would be greatly appreciated.

flamecs does not wanna start

ive got no idea this happens whenever i require it
No description

Properly use Flamework with React

Hey! I am using these 2 and I am wondering what is a good or the good way to make them work together properly. Because I assume a react gui would have a controller related but how do you make interaction between the 2, like how does the controller can affect the gui?...
Solution:
for example, you have a volume setting (a value from 0 to 1), the provider receives this value from the server, passes it to the view, when the client presses the volume up button, the view calls the OnChangeVolume function (which was passed through Props), passing a new value, inside this function the provider does all sorts of manipulations and passes the new value back to the view

Motion resolves immediately

I'm using ripple to display a banner when a new track plays, but the spring motion resolves to px(400) immediately.
Solution:
Here is the Frame ```tsx import React, { InstanceProps, ReactNode } from "@rbxts/react"; import { Colors } from "shared/util/colors"; import { Rounded } from "./Rounded";...

I am so confused about the type, it should be "string" but it says it can't be any

``ts public getHashCode(): number { const { X, Y, Z } = this.position; const positionString: string = ${X}${Y}${Z}`; ...

Readonly Charm atom

Hello, For the context I am creating a service that manage goals as abstract as possible, having a progress and goal numeric value, getting completed when progress reach goal. So I want other services creating the goal to be able to know when this goal progress and so I thought about using atom for progress value (why not also goal value) but returning the atom would mean the other service could change the atom value, is it possible to have a readonly version of this atom?...
Solution:
return function()
return atom()
end
return function()
return atom()
end
...
Next