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!
There’s an error -
What is the issue? Include screenshots / videos if possible!
Error on line 15: "Attempt to index string with “Value” "
code:
local Gui = game:GetService("ReplicatedStorage"):WaitForChild("Editor")
local confirming = "started"
script.Parent.New.MouseButton1Click:Connect(function()
if confirming == "started" then
script.Parent.New.Text = "Confirm"
script.Parent.Cancel.Visible = true
script.Parent:findFirstChild("Name").Visible = true
confirming = "ready"
elseif confirming == "ready" then
if script.Parent:FindFirstChild("Name").Text == "ChangeToName" or script.Parent:FindFirstChild("Name").Text == "" then
script.Parent.New.Text = "Enter a name buddy"
wait(2)
script.Parent.New.Text = "Confirm"
else
game:GetService("ReplicatedStorage"):WaitForChild("Editor").Name.Value = script.Parent:FindFirstChild("Name").Text
game:GetService("ReplicatedStorage"):WaitForChild("Editor").Parent = game.Players.LocalPlayer.PlayerGui
script.Parent.Parent = game.ReplicatedStorage
script.Parent.Cancel.Visible = false
script.Parent:findFirstChild("Name").Visible = false
script.Parent:findFirstChild("Name").Text = false
script.Parent.New.Name = "New"
confirming = "started"
end
end
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I looked for solutions on script helpers, but I could not find any
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!
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.