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

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

Asked by 4 years ago

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

0
Is Particle a basepart? I would also look closer at line 06 ABK2017 406 — 4y
0
More info on what Particle is BuDeep 214 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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()

Ad

Answer this question