So the Colorizer and Materializer have buttons to click and i wanna know how to set it to where the other players cant come in the tycoon and mess around with that if they are not the owner.
setting both scripts up to where it has a owner value and only the owner can mess with these buttons in the tycoon itself.
Script #1 for the Colorizer
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
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
v.ClickDetector.MouseClick:connect(function()
DropColor = v.BrickColor
script.Parent.Showing.BrickColor = v.BrickColor
Floor.BrickColor = v.BrickColor
end)
end
Script #2 for the Materializer
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
v.ClickDetector.MouseClick:connect(function()
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

2 comments
Thank you so much and now i understand about the :Connect and :connect
You're welcome!