MadSanity
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 41506 |
|
|
| 04 Mar 2017 05:46 PM |
When I use UDim2 to reposition a textbox, it sends it to {0, 0}, {0, 0} instead of the specified location I had in the script. Anything I would be doing wrong?
I change it to an Touched function to see if that would change anything and it didn't:
s = script.Parent debounce = false function onTouched(hit) if debounce == false then debounce = true wait(1) s.SurfaceGui.Location.Position = UDim2.new{0, (s.Position.X/10)},{0, (s.Position.Z/10)}
debounce = false end end
s.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
MadSanity
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 41506 |
|
|
| 04 Mar 2017 05:48 PM |
| And no, there's nothing wrong with the Parts position, and if I put in valid numbers that are contained within the CanvasSize, it still doesn't work. |
|
|
| Report Abuse |
|
|
MadSanity
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 41506 |
|
|
| 04 Mar 2017 05:50 PM |
changed it to a Touched function*
excuse that |
|
|
| Report Abuse |
|
|
MadSanity
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 41506 |
|
|
| 04 Mar 2017 05:54 PM |
| NEVERMIND I formatted it wrong. Ignore this. |
|
|
| Report Abuse |
|
|