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

Decal doesen't appear?

Asked by
drew1017 330 Moderation Voter
9 years ago
poisoned = Instance.new('ParticleEmitter', game.Players.LocalPlayer.Character.Torso)
    poisoned.Rate = 150
    poisoned.VelocitySpread = 360
    poisoned.Lifetime = NumberRange.new(0.5, 0.5)
        local c1 = Color3.new(1, 0.5, 0)
    poisoned.Color = ColorSequence.new(c1, c1)
    poisoned.LightEmission = 0.5
    poisoned.Texture = 'rbxassetid://256799050'
    poisoned.Speed = NumberRange.new(0, 0)

The particles dont seem to appear.Heres the decal im using, it's approved and not transparent so im not sure what the problem is.

0
Is this a localscript or a regular script? Cause if its a regular script LocalPlayer is not a function of that. BinaryResolved 215 — 9y

1 answer

Log in to vote
0
Answered by
davness 376 Moderation Voter
9 years ago

The error is the simplest ever. I think anyone can learn this.

On the roblox site, you have as ID this value:256799050

But the site has another ID that is supported by studio. Basically, when you upload something, the site do it TWICE, and you get the one that does not work on studio as reference.

How do I get the right ID?

Just subtract one to the ID you have - If you have 63929 as ID, the compatible ID is 63928 .

So, the conclusion is: Where you have:

    poisoned.Texture = 'rbxassetid://256799050'

You must have:

    poisoned.Texture = 'rbxassetid://256799049'

To prevent another situations like this, you can make a simple script to get the right ID without problems:

local ID = 6936 - 1 --an example
script.Parent.Decal.Texture = 'rbxassetid://'..(tostring ID) --the most common example
0
I did both of these long ago and it did not work. drew1017 330 — 9y
Ad

Answer this question