You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Make an editable booth. -
What is the issue? Include screenshots / videos if possible!
The If statement is not working. -
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)
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.