hi, i was working at a Pistol but i want to can use it and on phone, all good but the Reload button on phone don’t appear at the correct position.
the Button’s position need to be at the frame but it is in the corner.
The Script:
CAS:BindAction('Reload',Reload,true,Enum.KeyCode.R)
CAS:SetPosition('Reload',UDim2.new(0.772,0,0.691,0))
CAS:SetDescription('Reload','Reload')
CAS:SetTitle('Reload','Reload')
1 Like
colbert2677
(ImagineerColbert)
January 31, 2020, 1:25pm
#2
Just adjust the UDim2 you’re passing through to SetPosition? Not sure where you’re having trouble finding a solution.
the Udim2 is the exact position the Frame has but it still isn’t the same
colbert2677
(ImagineerColbert)
January 31, 2020, 1:28pm
#4
That’s probably because the button has different position and sizes values inputted which are not meshing well. You can get the button directly via GetButton and read or write to properties of the button.
1 Like