local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function(onclick)
script.Parent.Parent.Backdrop.Visible = false
script.Parent.Parent.XPBar.Visible = false
local endingpos = {0.5, -60},{0.9, 20}
---------------------This Area is where im having trouble------------------------
script.Parent.Position = UDim2.new({0.5, -60},{0.9, 20})
script.Parent.Text = "Show"
end)
My code is making the text button appear in the top left corner instead of bottom middle and it is also not changing the text on the text button please help!

1 comment
The onclick in line two isn't necessary either.