I have ran into an issue that I cant seem to figure out how to fix. My goal is when the button is clicked, the name would update in the slot. Instead, it doesn’t do anything at all without any errors.
script.Parent.MouseButton1Up:Connect(function()
for i, v in pairs(script.Parent.Parent.Parent.Our:GetChildren()) do
if v:IsA("TextButton") then
if v.Taken == false then
v.Taken = true
print('inside')
v.Text = script.Parent.Text
script.Parent:Destroy()
end
end
end
end)