Hello, Devfourm. I am trying to make a game with you that has the ability to resize, colour, materialize, and add effects to a basic part. I have recently added something where you can change the properties of the Sparkles if you have them added to the part. Once these Sparkles are added by using the button in the video, you can change the colour. But when I use the “Rest Part” Button, (which uses the :ClearAllChildern().) the buttons to change the sparkle colour don’t work anymore. Here is the script for the Orange button (They are all the same just different names):
local Sparkles = game.Workspace:WaitForChild("Color_Part"):WaitForChild("Sparkles")
local Click = script.Parent.ClickDetector
local Text = script.Parent.Parent.Parent.SurfaceGui.TextLabel
Click.MouseClick:Connect(function()
Sparkles.SparkleColor = Color3.new(1, 0.666667, 0)
Text.Text = "Orange"
end)
The script uses the :WaitForChild() to look for the “Sparkles” as a child of the Color_Part (Witch is the main part).
Here is the video:
https://drive.google.com/file/d/1jiAIjolNEePcsJb2GNWfsSAxtMioQejJ/view?usp=sharing
Thank you ![]()