Rennie
Rennie
Rroblox-ts
Created by Rennie on 5/11/2025 in #help
Mouse1ButtonClick not firing when nesting connection within promise.
Is there another approach you'd take?
11 replies
Rroblox-ts
Created by Rennie on 5/11/2025 in #help
Mouse1ButtonClick not firing when nesting connection within promise.
so I put it in a promise to state that we are waiting for the player to pick a card
11 replies
Rroblox-ts
Created by Rennie on 5/11/2025 in #help
Mouse1ButtonClick not firing when nesting connection within promise.
The server waits and gives the player X amount of time to pick a card
11 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
Thank you 🤗
24 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
Also do you have any reference code/guide I could look at. I hate to have to ask what would be simple questions
24 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
Would the callbacks also be captial according to the style guide
24 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
interface CardProps {
Size?: UDim2;
Position?: UDim2
ImageId? : String,
OnHover? : (isHovering: Boolean) => void,
onClick? : () => void,
}

export function Card({
Size = UDim2.fromOffset(100, 150),
Position = new UDim2(0.5,0, 0.5,0),
ImageId = "140128268738835",
onHover = (isHovering : Boolean) => {} ,
onClick = () => {},
} : CardProps
interface CardProps {
Size?: UDim2;
Position?: UDim2
ImageId? : String,
OnHover? : (isHovering: Boolean) => void,
onClick? : () => void,
}

export function Card({
Size = UDim2.fromOffset(100, 150),
Position = new UDim2(0.5,0, 0.5,0),
ImageId = "140128268738835",
onHover = (isHovering : Boolean) => {} ,
onClick = () => {},
} : CardProps
24 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
Ok so basing off of what you said
24 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
wait
24 replies
Rroblox-ts
Created by Rennie on 5/7/2025 in #help
How to use default values for props in rbxts/React?
jesus i am. Thank you
24 replies
Rroblox-ts
Created by Rennie on 5/4/2025 in #help
TS Index isn't properly translated into luau?
🙏 Thank you
13 replies
Rroblox-ts
Created by Rennie on 5/4/2025 in #help
TS Index isn't properly translated into luau?
as soon as u said this I knew it had to be me
13 replies
Rroblox-ts
Created by Rennie on 5/4/2025 in #help
TS Index isn't properly translated into luau?
🤦‍♂️ You're correct it was my logic
13 replies
Rroblox-ts
Created by Rennie on 5/4/2025 in #help
TS Index isn't properly translated into luau?
what I dont understand is the + 1 in cards[choosenIndex + 1 ]
13 replies
Rroblox-ts
Created by Rennie on 5/4/2025 in #help
TS Index isn't properly translated into luau?
which makes sense why i see cardsIndex[1]
13 replies
Rroblox-ts
Created by Rennie on 5/4/2025 in #help
TS Index isn't properly translated into luau?
That I understand
13 replies