Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is the last part of my script functioning wrong?

Asked by 6 years ago
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 answer

Log in to vote
0
Answered by 6 years ago

Remove the brackets. also, endingpos is uselessly defined

0
The onclick in line two isn't necessary either. Asceylos 562 — 6y
Ad

Answer this question