|
| 29 Nov 2016 06:52 PM |
I'm trying to get a script to run a basic Particle Emitter in the game. The Size is a Number Sequence of 2 different values, and this doesn't work. The Output doesn't help either, what am I doing wrong?
local First = {NumberSequenceKeypoint.new(0,0.75)} local Second = {NumberSequenceKeypoint.new(1,9.06)}
(In the ParticleEmitter script)
p.Size = NumberSequence.new(First[1], Second[1])
|
|
|
| Report Abuse |
|
|
C0_le
|
  |
| Joined: 29 Oct 2016 |
| Total Posts: 261 |
|
| |
|
|
| 29 Nov 2016 06:57 PM |
Alright, thank you for trying, though.
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 06:58 PM |
| Use just one sequence, rather then two from a table. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:01 PM |
Using one sentence had no effect.
I changed it to:
local First = {NumberSequenceKeypoint.new(0,0.75), NumberSequenceKeypoint.new(1,9.06)}
In the script:
p.Size = NumberSequence.new(First[1])
The script still doesn't work, and the OutPut only says that it's looking for keypoints, which doesn't help.
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:09 PM |
| Use NumberSequence.new(.75) Rather then keypoints or NumberSequenceKeypoint.Value |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:11 PM |
That's not a number sequence, that's one point, I want 2 different points.
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:16 PM |
My dude send the full array of only keypoints.
http://wiki.roblox.com/index.php?title=API:NumberSequence
Or else you will have to send the Values You can't do NumberSequence.new(instance,instance) it would have to be the Value of those instances. Or just send the whole table. NumberSequence.new(table) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:17 PM |
Also note...:
List must be ordered ascending by time. Time of first keypoint must be 0. Time of last keypoint must be 1. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:18 PM |
I am attempting to send the table, and it will not accept.
And the full array table is this:
local First = {NumberSequenceKeypoint.new(0,0.75), NumberSequenceKeypoint.new(1,9.06)}
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:23 PM |
Also, the Output keeps saying:
" NumberSequence ctor: table of NumberSequenceKeypoints expected."
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:29 PM |
| NumberSequenceKeypoint NumberSequenceKeypoint.new(number time, number value, number envelope) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:30 PM |
| Either all three or none at all is what syntax says. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:32 PM |
I used the Envelope value, and it still says:
" NumberSequence ctor: table of NumberSequenceKeypoints expected."
You're only making this more complicated than it needs to be. This is a single table, it's not rocket science.
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:47 PM |
You're making it more complicated on yourself. I just tested this myself and received no error.
_G.Create = LoadLibrary('RbxUtility').Create _G.Chosen = game.Workspace.Player1 _G.Color1 = Color3.new(201/255,201/255,255/255) _G.Color2 = Color3.new(0/255,85/255,255/255)
_G.Cloud = _G.Create('Part'){ Size = Vector3.new(7,.2,5); Transparency = 0; CanCollide = false; Parent = game.Workspace; }
function We##############################################################################################end
Weld(_G.Chosen['Torso'],_G.Cloud,CFrame.new(0,15,0))
_G.Create('SpecialMesh'){ MeshType = Enum.MeshType.FileMesh; MeshId = "http://www.roblox.com/asset/?id=1095708"; TextureId = "http://www.roblox.com/asset/?id=1095709"; Scale = Vector3.new(10,10,10); Parent = _G.Cloud;} _G.Create('ParticleEmitter'){ Color = ColorSequence.new(Color3.new(201/255,201/255,255/255),Color3.new(0,85/255,255/255)); Texture = "rbxassetid://241876428"; Transparency = NumberSequence.new(.75); LockedToPart = true; EmissionDirection = "Bottom"; Rate = 100; Speed = NumberRange.new(50); Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,.75), NumberSequenceKeypoint.new(1,9.06,9)}); Parent = _G.Cloud; } |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2016 07:51 PM |
I used the
"Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,.75), NumberSequenceKeypoint.new(1,9.06,9)});" part of it, and now it works.
Sorry if I was being a jerk, thanks for your effort.
|
|
|
| Report Abuse |
|
|