This script does not claim booth

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Make an editable booth.

  2. What is the issue? Include screenshots / videos if possible!
    The If statement is not working.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Nothing matched my problem.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Booth script:

script.Parent.Triggered:Connect(function(player)
	if script.Parent.Parent.Parent.BoothOwner == "" then
		script.Parent.Parent.Parent.BoothOwner = player.Name
		script.Parent.ActionText = "Edit"
	elseif script.Parent.Parent.Parent.BoothOwner == player.Name then
		local clone = script.Parent.Parent.Parent.ScreenGui
		clone.Parent = player.PlayerGui
	end
end)

game.ReplicatedStorage.BoothEditEvent.OnServerEvent:Connect(function(player, filteredOutput)
	local theText = script.Parent.Parent.Parent.SurfaceGui:WaitForChild("TextLabel")
	theText.Text = filteredOutput
end)

The workspace (if related)
image

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

if script.Parent.Parent.Parent.BoothOwner ~= nil if its a objet and you making the script say

		script.Parent.Parent.Parent.BoothOwner = player.Name

do this instead
```
script.Parent.Parent.Parent.BoothOwner.Value = player.Name

Lol i didn’t realize that, thank you for fixing!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.