I have kind of quit the whole UI thing on my last feedback post about my credits/intro UI. So I decided to start making ELS/A-Chassis vehicles, and plugins for them. This model is mobile support for these A-Chassis vehicles. I am getting kinda good with it not going to lie… So if anyone could please rate it on a scale of 1-10 or give feedback on what I should add, or any troubles with it. That would be great.
The images are pretty basic images for the pedals & hand brake, I know. But it was just a quick thing, and I think/hope nobody really cares about images. I could change them if they’re bad.
Model link: A-Chassics Mobile Support! - Roblox
Screenshot;
PLEASE NOTE: *Some gauges are not made/are not compatible with my mobile UI.*
EXAMPLE:
It’s all over the place.
Setup
Heya! So first of all, get the model: A-Chassics Mobile Support! - Roblox
Secondly your going to delete read me, because you can read this. Now drag mobile support over to your vehicles plugins;
Sorry for the video being huge on the screen, I can’t make it 75% size.
This now is the hard part. Depending on the gauge, the Drive script will be a bit different. Usually it’s either past line #205 or line #272 you must paste the interface script in. How do do here;
Now your done!! Only can be seen/used on a mobile device…obviously.
Yet just incase you are in need of the Interface script you put in Drive, here it is;
local Buttons = script.Parent:WaitForChild("Buttons")
local Left = Buttons:WaitForChild("Left")
local Right = Buttons:WaitForChild("Right")
local Brake = Buttons:WaitForChild("Brake")
local Gas = Buttons:WaitForChild("Gas")
local Handbrake = Buttons:WaitForChild("Handbrake")
if UserInputService.TouchEnabled and not UserInputService.MouseEnabled then
Buttons.Visible = true
end
local function LeftTurn(Touch, GPE)
if Touch.UserInputState == Enum.UserInputState.Begin then
_GSteerT = -1
_SteerL = true
else
if _SteerR then
_GSteerT = 1
else
_GSteerT = 0
end
_SteerL = false
end
end
Left.InputBegan:Connect(LeftTurn)
Left.InputEnded:Connect(LeftTurn)
--Left.InputChanged:Connect(LeftTurn)
local function RightTurn(Touch, GPE)
if Touch.UserInputState == Enum.UserInputState.Begin then
_GSteerT = 1
_SteerR = true
else
if _SteerL then
_GSteerT = -1
else
_GSteerT = 0
end
_SteerR = false
end
end
Right.InputBegan:Connect(RightTurn)
Right.InputEnded:Connect(RightTurn)
--Right.InputChanged:Connect(RightTurn)
local function TouchThrottle(input, GPE)
if input.UserInputState == Enum.UserInputState.Begin and _IsOn then
_GThrot = 1
else
_GThrot = _Tune.IdleThrottle/100
end
end
Gas.InputBegan:Connect(TouchThrottle)
Gas.InputEnded:Connect(TouchThrottle)
--Gas.InputChanged:Connect(TouchThrottle)
local function TouchBrake(input, GPE)
if input.UserInputState == Enum.UserInputState.Begin then
_GBrake = 1
else
_GBrake = 0
end
end
Brake.InputBegan:Connect(TouchBrake)
Brake.InputEnded:Connect(TouchBrake)
--Brake.InputChanged:Connect(TouchBrake)
local function TouchHandbrake(input, GPE)
if input.UserInputState == Enum.UserInputState.Begin then
_PBrake = not _PBrake
elseif input.UserInputState == Enum.UserInputState.End then
if car.DriveSeat.Velocity.Magnitude>5 then
_PBrake = false
end
end
end
Handbrake.InputBegan:Connect(TouchHandbrake)
Handbrake.InputEnded:Connect(TouchHandbrake)
So yeah! Let me know how it goes, and please read the setup area. This can be really tough because you have to paste a Script into a specific section of your cars “Drive” script.
Again;
PLEASE NOTE: *Some gauges are not made/are not compatible with my mobile UI.*