i feel this is over complicated
-- .... (other refs)
local playButton = menu:WaitForChild("MenuFrame"):WaitForChild("PLAY")
-- .... (other refs)
local UIS = game:GetService("UserInputService")
playButton.MouseButton1Click:Connect(function()
if UIS.TouchEnabled then
-- mobile players code
elseif not UIS.TouchEnabled then
-- pc players code
else
-- error msg, handle error such as closing both mobile and pc gui or something
warn("Something went wrong!")
end
end)
(sorry to whos typing i was just taking forever)
do you have any scripting experience or is it just all ai?
)
** You are now Level 8! **
