generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: NumberSequence Help

Previous Thread :: Next Thread 
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
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 is online. C0_le
Joined: 29 Oct 2016
Total Posts: 261
29 Nov 2016 06:56 PM
No Clue Sorry...
Report Abuse
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
29 Nov 2016 06:57 PM
Alright, thank you for trying, though.


Report Abuse
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
29 Nov 2016 06:58 PM
Use just one sequence, rather then two from a table.
Report Abuse
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
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
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
29 Nov 2016 07:09 PM
Use NumberSequence.new(.75) Rather then keypoints or NumberSequenceKeypoint.Value
Report Abuse
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
29 Nov 2016 07:11 PM
That's not a number sequence, that's one point, I want 2 different points.


Report Abuse
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
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
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
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
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
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
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
29 Nov 2016 07:23 PM
Also, the Output keeps saying:

" NumberSequence ctor: table of NumberSequenceKeypoints expected."


Report Abuse
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
29 Nov 2016 07:29 PM
NumberSequenceKeypoint NumberSequenceKeypoint.new(number time, number value, number envelope)
Report Abuse
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
29 Nov 2016 07:30 PM
Either all three or none at all is what syntax says.
Report Abuse
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
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
Sen_Takatsuki is not online. Sen_Takatsuki
Joined: 07 Aug 2013
Total Posts: 673
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
ZachTheSuperSaiyan is not online. ZachTheSuperSaiyan
Joined: 11 Apr 2011
Total Posts: 287
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image