ActionService:BindAction("PressAAMobile", PressA, true, Enum.KeyCode.A)
ActionService:BindAction("PressDDMobile", PressD, true, Enum.KeyCode.D)
local PressAButton = ActionService:GetButton("PressAAMobile")
local PressDButton = ActionService:GetButton("PressDDMobile")
PressAButton.Size = UDim2.new(0,100,0,100) --line problem
PressDButton.Size = UDim2.new(0,100,0,100)
I am making buttons on mobile with ContextActionService(Making size) but this error pops up, i tried looking at the forum but i didn’t saw any post related to what i am doing. What i am doing wrong?
ActionService:GetButton("PressAAMobile") is returning nil, so it might not have loaded? I’m not entirely sure how ContextActionService buttons work but try adding atask.wait(5) and see if it works then