No I mean what is the classname of the stand you are talking about? Is it a text button or a image label or a image button or a text label or a viewport frame or a frame or a screen gui or what?
Oh, the stand is a model with a bunch of parts. When I click the done button, text will change to the text label on the surface ui, sorry if I’m confusing.
I didn’t have a script for that. I also called one of them “Main1” and “Main2”, I just didn’t show the other script. It’s the exact same just with different names, is that the problem?
Thats The Image of what I have, as you can see main1 and main2 are the actual parts im talking about. As in the stand are just models. In the frame, thats where I click done
I have a button and when and when I click done it will present text on the part(I have two parts) but when I click done, both of them present the text but I want it to only present on their parts, not others.
You should try and identify the stand that the player owns, and make the changes to that certain stand for all the players, adding a check to also see if the player owns the actual stand so it won’t be exploited.
When you click on the stand, will your name be inside of a StringValue inside of the stand model? If that’s the case, you can possibly make it work and checked this way.
No I made an int value inside the click detector script, and seen if the player claimed that. If it was claimed it would equal one then they would claim it anymore:
local PlayerCollectedItem = false
local Claimed
script.Parent.MouseClick:Connect(function(player)
if Claimed == nil then
script.Parent.Parent.BillboardGui.TextLabel.Text = "Owned By No One"
Claimed = Instance.new("NumberValue")
Claimed.Name = "Claimed"
Claimed.Value = 0
Claimed.Parent = player
if script.Parent.Parent.BillboardGui.TextLabel.Text == "Owned By No One" then
if Claimed.Value == 0 then
Claimed.Value = 1
if Claimed.Value == 1 then
PlayerCollectedItem = true
script.Parent.Parent.BillboardGui.TextLabel.Text = "Owned By "..player.Name
end
end
end
end
end)
If I was you, I’d make a StringValue inside of that stand, and I’d change its Value to the Player’s name if it’s owned, when the player leaves, I’d make it so it becomes nil again and stand returns to default settings (name and descriptions). That way you can also find what stand the player owns more easily, if they own anything anyways.