script.Parent.Parent.Parent.Parent = Playergui script.Parent.Parent.Parent = Frame Script.Parent.Parent = textbox script.Parent = Textbutton
when i click the textbutton it prints:
(a blank print)
nil
Players.flireferret.PlayerGui.ScreenGui.Frame.Textbox.TextButton.Script:6: attempt to index a nil value Stack Begin Script 'Players.flireferret.PlayerGui.Frame.Textbox.TextButton.Script', Line 6 Stack End
local player = script.Parent.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:Connect(function() print ((script.Parent.Parent.Text)) print ( tonumber(script.Parent.Parent.Text)) player:FindFirstChild("soundid").Value = tonumber(script.Parent.Parent.Text) end)
I may be wrong, but in your print on line 4 maybe try and remove the extra parentheses