Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is the last part of my script functioning wrong?

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

✓ Accepted answer

Remove the brackets. also, endingpos is uselessly defined

1 comment

0

The onclick in line two isn't necessary either.

This discussion is preserved as it was. New answers, comments, and votes are closed.