local UserInputService = game:GetService("UserInputService")
local branch = script.Parent
local open = branch:WaitForChild("TextButton")
local MainFrame = branch:WaitForChild("Frame")
local changeLogLabel = MainFrame:FindFirstChild("ChangeLog")
open.MouseButton1Click:Connect(function()
local platform = UserInputService:GetPlatform()
if platform == Enum.Platform.IOS or platform == Enum.Platform.Android then
open.Text = "Not for Mobile yet"
if changeLogLabel and changeLogLabel:IsA("TextLabel") then
local originalText = changeLogLabel.Text
changeLogLabel.Text = "Not available for mobile devices :("
task.delay(1, function()
changeLogLabel.Text = originalText
end)
end
MainFrame.Visible = false
task.delay(1, function()
open.Text = "Change Log"
end)
return
end
if not MainFrame.Visible then
MainFrame.Visible = true
open.Text = "Close"
else
MainFrame.Visible = false
open.Text = "Change Log"
end
end)
I have a change log in my game but the GUI is currently a bit broken for mobile devices, while I'm trying to fix it I wanted to make it so when a mobile player clicks on the button it doesnt open the frame and instead says "not available for mobile devices yet" on the button for one second, and yeah it works on the roblox studio's device emulator but it doesn't work on an actual mobile device as I checked (This script was made by AI cuz I have 0 scripting understanding)
** You are now Level 2! **