roblox-ts

R

roblox-ts

Join the community to ask questions about roblox-ts and get answers from other members.

Join

Using Lastest Jest

The latest vendor uses loadstring, how do you approach writing tests and execute them. I tried littensy's rbxts-jest-test repo and that will give me permission error since loadstring is plugin security. If I was to do this in a storybook with react, it would give me this weird blob of string and a "multiple runtime error". I saw littensy referring to this issue and resetting scripts at runtime. But this doesn't really help in terms of running the code without clicking run
No description

What is considered more optimized?

Changing the visible value or making the element optional ex: {display && <imagebutton/>} or <imagebutton Visible={display} />...

I keep getting this error when trying to publish packages

npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access npm ERR! code E404 npm ERR! 404 Not Found - PUT https://registry.npmjs.org/@rbxts%2fnext-roblox - Not found npm ERR! 404 npm ERR! 404 '@rbxts/[email protected]' is not in this registry....

Color wheel in React

Does it make sense to make the handle draggable? If so, how? Oh, and the main question, how to determine the color the handle is on.
No description

How to fix and optimize React UI

I noticed that my react ui is not optimized at all, the game freezes for a second when opening something. I am new to React, so I understand that most likely I wrote something terrible. I am interested in a guide or advice on how to find the cause of delays, optimize it, fix it, etc.

Attempt to call a table value

```ts import { Manim } from "@rbxts/manim"; import { BaseScene } from "../../scene"; @Manim.Decorators.Scene({...

Is there a way to get all the types, that has specific property in them?

In my case, I need to get all the instances that has LocalTransparencyModifier property.

how can you detect a click that was made outside the required component?

I want to make something like a context menu on the Windows OS desktop, I did the positioning when I click on the frame, but I don’t know how I can detect the click outside of the menu to hide it. Do you have any suggestions?

Cannot create custom type in Centurion

I'm getting a weird error that the type is not registered

useEffect() being called before reference is assigned

im making a react roblox ts component that should tween its size when the component is called and created but the useEffect() function is creating the tween before the useRef() is assigned to the frame
No description

Should you use CanvasGroup?

It seems like this is a relatively new thing. I'm concerned about its performance with react, how good it is in general

Can you disable compilation of some parts of the code?

I have a big change and the project will not compile until if fix everything. Is it possible to implement something like feature enabled flag?...

Charm + Vide How To Update UI

I have just started using vide and charm, but i am still not sure how i could use the two of them to update my UIs, i would really appreciate any help!

charm sync player data

anyone give me idea on how to sync player data from server to client using charm. My approach was to listen for player joining, loading it into a atom then syncing it into the client. However that will expose all the player's data to every single player which is a behavior I don't want.