I have a script the detects when a player click a clickdetector and then get their username. I also have a bool value that gets added into every player when they join. How would I set the bool value inside the player who clicked the part to true?
local button = script.Parent
local inUse = game.Workspace.Booth1:WaitForChild("InUse")
local Owner = game.Workspace.Booth1:WaitForChild("Owner")
local Label = script.Parent.Parent.SurfaceGui:WaitForChild("TextLabel")
button.MouseClick:Connect(function(player)
if inUse.Value == false then
inUse.Value = true
Owner.Value = (player.Name)
Label.Text = ("Claimed by " .. player.Name .. "!")
-- change bool value of the player on line above ^^^^
else
print("Already being used!")
end
end)

4 comments
What seems to be the problem...? I can't quite comprehend
Also which bool value are you talking about?
I dont know how to set the bool value of the specific player who clicked the clickDetecor to true. The bool value is just inside of every player, not listed in the script above.
What's the bool value's name and where is it located, e.g.. YourAverageMyth > BoolFolder > Bool