So I'm trying to make a game pass for a custom particle on your torso, but for some reason, it doesn't work.
local passId = 837872254 -- change this to your game pass ID.
function isAuthenticated(player) -- checks to see if the player owns your pass
return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId)
end
game.Players.PlayerAdded:connect(function(plr)
if isAuthenticated(plr) then
plr.CharacterAdded:connect(function(char) --We don't need two PlayerAdded events because the first one already got the player.
local Particle = Instance.new("ParticleEmitter",game.Workspace.Torso)
Particle.VelocitySpread = 360
Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
Particle.Rate = 50
Particle.Texture = "http://www.roblox.com/asset/?id=258128463"
Particle.Name = "Sparks"
Particle.Parent = char:WaitForChild("Torso")
end)
end
end)
Once I delete this line:
Particle.VelocitySpread = 360
Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
Particle.Rate = 50
Particle.Texture = "http://www.roblox.com/asset/?id=258128463
It works, but it's a regular particle which I don't really want. NOTE: I want this particle: http://www.roblox.com/asset/?id=258128463

1 comment
http://wiki.roblox.com/index.php?title=API:NumberSequenceKeypoint requiores 3 args