|
| 08 May 2016 09:37 AM |
and also how to change it?
i want to limit my draggable GUI only horizontally, so i want to remove and vertical drag that a user does
is this possible with draggable? or should i make my own dragging function? |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 May 2016 09:47 AM |
Mind sharing the solution?
#code mod = require(sike) if not mod.xThe[...] then print("You're not RbxDev yet..") end |
|
|
| Report Abuse |
|
|
|
| 08 May 2016 09:50 AM |
ok well draggable changes offset, not scale
so my gui was 100% scale
and so i just used .Changed to change the y offset of the GUI to 0, so the gui only offsetted horizontally
|
|
|
| Report Abuse |
|
|
|
| 08 May 2016 09:51 AM |
script.Parent.Changed:connect(function() local x = script.Parent.Position.X.Offset script.Parent.Position = UDim2.new(0, x, 0, 0) end)
that's the code if u want
the default position of my gui was {0,0,0,0} |
|
|
| Report Abuse |
|
|