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

Can't set value?

I'm trying to move a text button, but it always output can't set value. Gosh i'm failing at the simple stuff...

local settings = script.Parent
local graphics_q = script.Parent.Parent.Graphics_Q
settings.MouseButton1Click:connect(function()
	for i=0, 210 do
		graphics_q.AbsolutePosition = Vector2.new(i,0)
		print("Sucess")
		wait(0.40)
	end
	
end)

1 answer

✓ Accepted answer

That is because AbsolutePosition is a Read Only value. You can check the value but if you try to set it, it will error out. Read more at the wiki page

2 comments

0

Thank you wise man with a beard...

0

No problem! Also if you want to move it around, you may want to try changing the Position of the object or to look up how to use :TweenPosition on the wiki (that way you do not need to use a for loop)

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