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

[SOLVED] i want a script to change the color of a color3value can someone help me?

this is the script i made you have to look on line 9 i don't know how to change this with a script I have tried it several times

oof = game.ReplicatedStorage.Markers.Bank.Config.BurstType
color = game.ReplicatedStorage.Markers.Bank.Config.MarkerColor

script.Parent.Touched:Connect(function()
	oof.Value = "Police"
	wait(10)
	oof.Value = "Niks"
	
	color.Value = "107,107,107"
end)

1 answer

✓ Accepted answer

The Color3Value's Value property is a Color3, not a string.

You can create a Color3 with the Color3.new or Color3.fromRGB constructors.

The former takes arguments from 0-1 where the latter takes arguments from 0 to 255.

oof = game.ReplicatedStorage.Markers.Bank.Config.BurstType
color = game.ReplicatedStorage.Markers.Bank.Config.MarkerColor

script.Parent.Touched:Connect(function()
    oof.Value = "Police"
    wait(10)
    oof.Value = "Niks"

    color.Value = Color3.fromRGB(107, 107, 107) -- or Color3.new(107/255, 107/255, 107/255)
end)

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