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

I'm trying to make a signal that says rather the ammo box is usable or not. It's failing. Why?

Yes, another problem with the same script that I asked about 2 hours ago.

The issue now is that I'm trying to have the brick change color when it's available or not.

local Particle = script.Parent.Parent:FindFirstChild("MagnumParticle")
local killscript = script.Parent:FindFirstChild("KillScript")



Particle.Color3.new(1, 0, 0)
script.Value.Value = 30
repeat
	wait(1)
	script.Value.Value = script.Value.Value - 1
until script.Value.Value <= 0 
killscript.Disabled = false
Particle.Color3.new(0, 1, 0)
script.Disabled = true




Output: 13:48:28.451 - Color3 is not a valid member of Part 13:48:28.452 - Stack Begin 13:48:28.452 - Script 'Workspace.Ammobox.KillBrick.Script', Line 6 13:48:28.453 - Stack End 13:49:10.210 - Disconnect from 127.0.0.1|50940

2 comments

0

Is Particle a basepart? I would also look closer at line 06

0

More info on what Particle is

1 answer

Color3 is not a property of parts. Color and BrickColor, however, are. Replace your addresses to Particle.Color3 with;

Particle.Color=Color3.new()

or

Particle.BrickColor=BrickColor.new()

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