local startFrameExit = startFrame.Exit.Button
local infoFrameExit = infoFrame.Exit.Button
local start = script.Parent.Start.Button
local market = script.Parent.Market.Button
local infoButton = script.Parent.HowToButton.Button
local Buttons = {start, market, infoButton, startFrameExit, infoFrameExit}
for i,v in pairs(Buttons) do
v.InputBegan:Connect(function(inp)
if inp.UserInputType == Enum.UserInputType.MouseButton1 and inp.UserInputType == Enum.UserInputType.Touch then
v:TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.1, true)
end
end)
v.InputEnded:Connect(function(inp)
if inp.UserInputType == Enum.UserInputType.MouseButton1 and inp.UserInputType == Enum.UserInputType.Touch then
v:TweenPosition(UDim2.new(0,0,0,-0.1), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.1, true)
if i == 1 then -- Start Button
startFrame.Visible = true
elseif i == 2 then -- Market Button
elseif i == 3 then -- Info Button
infoFrame.Visible = true
elseif i == 4 then -- StartExit Button
startFrame.Visible = false
elseif i == 5 then -- InfoExit Button
infoFrame.Visible = false
end
end
end)
end
my inputs are not giving any signals so the tweens and what not arn’t working.
Ok but why are you trying to detect both the MouseButton1/Touch types? Can’t you just use the or statement to detect if the Player is on PC or Mobile?
I already know about this, but thanks a lot for discribing it. I didn’t saw that I used and statement and was checking other things to see what wasn’t working and totally forgot that I put and except putting or