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

Image label's position keeps changing to {0, 0},{0, 0}. How do I fix this?

In the script below I tried to change the image label's position. But it keeps changing to {0, 0},{0, 0} other than changing it to the desired position. How do I fix this?

arrow = script.Parent.Parent:WaitForChild('PlayArrow')

	arrow.Position = UDim2.new({0, 0},{0.2, 0})
wait(0.05)
	arrow.Position = UDim2.new({0.05, 0},{0.2, 0})

3 comments

1

remove the { and} they are only used in studio. Use Udim2.new(0, 0, 0.2, 0) instead.

0

pls don't answer in comments.

0

@cabbler This question can be answered in a comment as it is just a user error which is simply fixed.

1 answer

It looks like your issue is copying and pasting the brackets from the properties panel, to fix this just remove the brackets.

arrow = script.Parent.Parent:WaitForChild('PlayArrow')

arrow.Position = UDim2.new(0, 0, 0.2, 0)
wait(0.05)
arrow.Position = UDim2.new(0.05, 0, 0.2, 0)

1 comment

0

True.

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