How to add and change properties in a script from ParticleEmitter? Error starts at
Decal.Size = 0.2
I don't know why this is not working.
local asset = "http://www.roblox.com/asset/?id=395511694"
script.Parent.Upgrade.Touched:connect(function(hit)
if hit:FindFirstChild("Tix") then
hit.Tix.Value = hit.Tix.Value * 2
local Decal = Instance.new("ParticleEmitter",hit)
Decal.Size = 0.2
Decal.Lifetime = 0.5
Decal.EmissionDirection = ("Back")
Decal.Transparency = 0.5
Decal.Rate = 10
Decal.RotSpeed = 50
Decal.Texture = asset
Decal.LockedToPart = true
end
end)
Thanks

2 comments
Your answer is confusing I don't really understand what your asking
He isn't understanding why the script is erroring on line 6. I understand why, it's because the Size property is a NumberSequence, not a float/number value. What I do not understand is how to use NumberSequences, so if anyone knows, that'd be a great answer for future reference!