after doing owner checks like theses, the click detector stopped working but no errors print, please someone tell me why?
Putting these two dont make anything different, Its still the same thing to where the click detector isnt working
if plr.Name == OwnerValue then
if plr.Name == OwnerValue.Value then
Script #1
local DropColor = script.Parent.Parent.Parent.Values.DropColor.Value
local Floor = script.Parent.Parent.Parent.MainItems.Floor
local OwnerValue = script.Parent.Parent.Parent.Values.OwnerValue.Value
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
v.ClickDetector.MouseClick:connect(function(plr)
if plr.Name == OwnerValue then
DropColor = v.BrickColor
script.Parent.Showing.BrickColor = v.BrickColor
Floor.BrickColor = v.BrickColor
end
end)
end
Script #2
local OwnerValue = script.Parent.Parent.Parent.Values.OwnerValue.Value
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
v.ClickDetector.MouseClick:connect(function(plr)
if plr.Name == OwnerValue then
script.Parent.Parent.Parent.Values.MaterialValue.Value = v.Material.Name
script.Parent.Showing.Material = v.Material.Name
script.Parent.Parent.Parent.MainItems.Floor.Material = v.Material.Name
end
end)
end

6 comments
Add a print statement to see what the value of the owner is and what the value of the plr is.
Nothing is sending with the prints
What is plr sending and what is OwnerValue sending? If OwnerValue is not sending the name of the owner, then the script that assigned the player name to Ownervalue is where the error is at
well thats the first issue, is that im not to sure on how to print it. Could you please show me how to do that
print(OwnerValue)
nothing is printing when i do that in the scripts