niveks1436
(niveks1436)
February 14, 2024, 12:02am
1
Hey there, I need to grab the size of a particle emitter. But I don’t really know how, the only thing I thought of is using tonumber, but it doesn’t seem to return anything.
SizeToGrab = script.Parent.Emitter.Size
Size = tonumber(SizeToGrab)
Any help is appreciated, thanks.
Downrest
(Down)
February 14, 2024, 12:16am
2
This doesn’t work because Size in particle emitters aren’t numbers, they’re NumberSequences.
If you’re only setting single numbers for particle sizes, you can read them off through this instead:
SizeToGrab = script.Parent.Emitter.Size
Size = SizeToGrab.Keypoints[1].Value
niveks1436
(niveks1436)
February 14, 2024, 12:17am
3
ah okay, i see. didnt know what keypoint was, thank you!