Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Decal doesen't appear?

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.

1 comment

0

Is this a localscript or a regular script? Cause if its a regular script LocalPlayer is not a function of that.

1 answer

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

1 comment

0

I did both of these long ago and it did not work.

This discussion is preserved as it was. New answers, comments, and votes are closed.