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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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
Thank you ZachAttack123123123 13 — 6y
Ad

Answer this question