Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to extract numbers from a numbersequence? [answered by asker]

Asked by
RAFA1608 543 Moderation Voter
4 years ago
Edited 4 years ago

Hello, I am trying to extract the numbers from an number sequence. Heres what i have tried:

local goal3 = {}
goal3.Size = NumberSequence.new({
NumberSequenceKeypoint.new(1,v.Size.Keypoints[1]*times),
NumberSequenceKeypoint.new(1,v.Size.Keypoints[1]*times)
})
local t3 = game.TweenService:Create(v,ti,goal3)
t3:Play()

but the error says that its trying to index number with userdata. How do i do this? Thank you. p.s. i didnt find anything else relationed to this in google

0
p.s. im trying to extract a numbersequence from a particle emmiter RAFA1608 543 — 4y
0
i mean, the numbers behind them. yeah. RAFA1608 543 — 4y

1 answer

Log in to vote
0
Answered by
RAFA1608 543 Moderation Voter
4 years ago

I found it out. I guess i was being dumb and didnt try all the possibilities. My bad. Heres my answer:

local goal3 = {}
goal3.Size = NumberSequence.new({               NumberSequenceKeypoint.new(0.0,v.Size.Keypoints[1]["Value"]*times),
NumberSequenceKeypoint.new(1.0,v.Size.Keypoints[1]["Value"]*times)
})
--local t3 = game.TweenService:Create(v,ti,goal3)
--t3:Play() --apparently particleemitter size cant be tweened :/

so yeah... its that simple...

Ad

Answer this question