On-screen button that only renders on touch devices.
-- Mobile Action Button (touch devices only) local UserInputService = game:GetService("UserInputService") if not UserInputService.TouchEnabled then return end local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local button = Instance.new("TextButton", script.Parent) button.Size = UDim2.new(0,72,0,72); button.Position = UDim2.new(1,-90,1,-100) button.AnchorPoint = Vector2.new(0,1); button.Text = "โก"; button.TextSize = 28 button.BackgroundColor3 = Color3.fromRGB(40,40,80); button.TextColor3 = Color3.new(1,1,1) button.BackgroundTransparency = 0.2; button.BorderSizePixel = 0 Instance.new("UICorner", button).CornerRadius = UDim.new(1,0) button.MouseButton1Click:Connect(function() humanoid.Jump = true end)