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

Particle Emitters Help!?!

Asked by 9 years ago

I'm trying to make a Cash Symbol appear above my NPC's head using Particle but it won't show?

Cash = Instance.new("ParticleEmitter")
Cash.Parent = game.Workspace.XxmanwolfxX.Head2
Cash.Size.Value = 1.5
Cash.Transparency.Value = 0
Cash.LightEmission.Value = 0
Cash.Color.Value = 255,255,255
Cash.Acceleration.Value = 0,5,0
Cash.Lifetime.Min.Value = 1
Cash.Lifetime.Max.Value = 1
Cash.Speed.Value = 5
Cash.Texture = http://www.roblox.com/asset/?id=217001241

1 answer

Log in to vote
2
Answered by 9 years ago

Your problem is line 11. You need to make it a String! ROBLOX doesn't know what to do with http://www.roblox.com/asset/?id=217001241 Here is what it will look like:

Cash = Instance.new("ParticleEmitter")
Cash.Parent = game.Workspace.XxmanwolfxX.Head2
Cash.Size.Value = 1.5
Cash.Transparency.Value = 0
Cash.LightEmission.Value = 0
Cash.Color.Value = 255,255,255
Cash.Acceleration.Value = 0,5,0
Cash.Lifetime.Min.Value = 1
Cash.Lifetime.Max.Value = 1
Cash.Speed.Value = 5
Cash.Texture = "http://www.roblox.com/asset/?id=217001241"

You can see the only thing I did was put quotation marks around http://www.roblox.com/asset/?id=217001241

1
Thanks! I thought I had to do that but didnt. You are a huge help :) @alphawolvess attackonkyojin 135 — 9y
Ad

Answer this question