So im trying to make this script work with both devices but im not sure how to, how can i do this? If a player is on mobile they have to click a button but if they are on pc they have to click F
uis.InputBegan:Connect(function(input, isTyping)
if equip == true then
if isTyping then
return
elseif script.Parent.Parent.Parent.Parent:WaitForChild("Block").MouseButton1Click or input.KeyCode == Enum.KeyCode.F then
print('F or M')
local standName = script.Parent.Parent.StandName.Text
if debounce == false and IsActive == true then
debounce = true
IsActive = false
Block:FireServer(IsActive, standName)
wait(cd)
debounce = false
elseif debounce == false and IsActive == true then
debounce = true
IsActive = false
Block:FireServer(IsActive, standName)
wait(cd)
debounce = false
end
end
else
return
end
end)