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

How do I get Position Y Offset to change with a script?

I have got everything working expect for line 15. If you now how or what I have to do different to make it work then let me know.

This is my script

wait()

pointer = script.Parent.Mainframe.Background.Lev.pointer
planee = game.Workspace.planee

applie = planee.Orientation.X
pie = applie * -5

 while wait() do
applie = planee.Orientation.X
pie = applie * -5
print(applie)
print("Mom")
print(pie)
pointer.Position.Y.Offset = 23
end


1 answer

✓ Accepted answer

Use UDim2.new() I think the arguments are x scale, x offset, y scale, y offset. So, for example:

pointer.Position = pointer.Position + UDim2.new(0, 23, 0, 0)

1 comment

1

Thank you

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