local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait() --Recommended this, it worked for a while...
script.Parent.MouseButton1Click:connect(function()
	local Get = character:GetChildren()
	for i = 1, #Get do
		if Get[i].ClassName == "Model" then
			local Gget = Get[i]:GetChildren()
			for i = 1, #Gget do
				if Gget[i].Name == script.Parent.Parent.Parent.Parent.Target.Value then
				Gget[i].BrickColor = BrickColor.new(script.Parent.Name)
				end
			end
		end
	end
end)
player.CharacterAdded:connect(function(c) --One person recommended me doing this... After the CharacterAdded:wait() thing... Then this stopped helping too.
	c = character
end);

Okay, as recommended by ScriptGuider. I'm going to add more information for what it does, and what it's messing up to do.

The script is based on a textbutton within a folder, within a frame, within another frame.. And two more frames, inside of a screengui. There's a Target [StringValue] that is changing based on the item added by other buttons. [Those work. Everything else works.] The issue here is, everything works until the player resets, then they stop working completely. I've tried two different ideas from different people, and now those ideas don't seem to work anymore.

4 comments

0

Guessing you're wanting me to remove this, because I explained what I've tried before as comments.

0

Just felt a bit more could have been added. Maybe explaining a little more about what you want it to do, or maybe some background information about it.

0

Added More.