Ocfi Pass the Bomb Mobile Script
Roblox Scripts is what Roblox players and coders use to build interactive games. To be more specific, players use Lua scripts a popular scripting and programming language.
Instruction
1.Open Roblox And Start Playing 2.Click The Blue Circle To Copy The Script Code 3.Paste The Script Code Into Your Executor 4.Then Execute The Script Code 5.Enjoy
Script Code
-- Create UI local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local TitleBar = Instance.new("TextLabel") local TabContainer = Instance.new("Frame") local AntiSlipperyTab = Instance.new("TextButton") local CreditsTab = Instance.new("TextButton") local TabIndicator = Instance.new("Frame") local ContentFrame = Instance.new("Frame") local CloseButton = Instance.new("TextButton") local CreditsFrame = Instance.new("Frame") local CreditsLabel = Instance.new("TextLabel") local CopyDiscordLinkButton = Instance.new("TextButton") local ReturnToPlayerButton = Instance.new("TextButton") local InfiniteYieldButton = Instance.new("TextButton") local AutofarmCoinsButton = Instance.new("TextButton") local ToggleButton = Instance.new("TextButton") ScreenGui.Name = "AntiSlipperyUI" ScreenGui.Parent = game.CoreGui ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100) MainFrame.Size = UDim2.new(0, 300, 0, 200) MainFrame.Active = true MainFrame.Draggable = true -- Make the UI draggable TitleBar.Name = "TitleBar" TitleBar.Parent = MainFrame TitleBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40) TitleBar.Size = UDim2.new(1, 0, 0, 30) TitleBar.Font = Enum.Font.SourceSans TitleBar.Text = "Anti Slippery Menu" TitleBar.TextColor3 = Color3.new(1, 1, 1) TitleBar.TextSize = 16 TitleBar.TextXAlignment = Enum.TextXAlignment.Center CloseButton.Name = "CloseButton" CloseButton.Parent = TitleBar CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) CloseButton.Size = UDim2.new(0, 30, 0, 30) CloseButton.Position = UDim2.new(1, -30, 0, 0) CloseButton.Font = Enum.Font.SourceSans CloseButton.Text = "X" CloseButton.TextColor3 = Color3.new(1, 1, 1) CloseButton.TextSize = 16 CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) TabContainer.Name = "TabContainer" TabContainer.Parent = MainFrame TabContainer.BackgroundColor3 = Color3.fromRGB(50, 50, 50) TabContainer.Position = UDim2.new(0, 0, 0, 30) TabContainer.Size = UDim2.new(0, 100, 1, -30) AntiSlipperyTab.Name = "AntiSlipperyTab" AntiSlipperyTab.Parent = TabContainer AntiSlipperyTab.BackgroundColor3 = Color3.fromRGB(50, 50, 50) AntiSlipperyTab.Position = UDim2.new(0, 0, 0, 0) AntiSlipperyTab.Size = UDim2.new(1, 0, 0, 30) AntiSlipperyTab.Font = Enum.Font.SourceSans AntiSlipperyTab.Text = "Main" AntiSlipperyTab.TextColor3 = Color3.new(1, 1, 1) AntiSlipperyTab.TextSize = 16 CreditsTab.Name = "CreditsTab" CreditsTab.Parent = TabContainer CreditsTab.BackgroundColor3 = Color3.fromRGB(50, 50, 50) CreditsTab.Position = UDim2.new(0, 0, 0, 30) CreditsTab.Size = UDim2.new(1, 0, 0, 30) CreditsTab.Font = Enum.Font.SourceSans CreditsTab.Text = "Credits" CreditsTab.TextColor3 = Color3.new(1, 1, 1) CreditsTab.TextSize = 16 TabIndicator.Name = "TabIndicator" TabIndicator.Parent = TabContainer TabIndicator.BackgroundColor3 = Color3.fromRGB(0, 162, 255) TabIndicator.BorderSizePixel = 0 TabIndicator.Position = UDim2.new(0, 0, 0, 0) TabIndicator.Size = UDim2.new(1, 0, 0, 4) ContentFrame.Name = "ContentFrame" ContentFrame.Parent = MainFrame ContentFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) ContentFrame.Position = UDim2.new(0, 100, 0, 30) ContentFrame.Size = UDim2.new(1, -100, 1, -30) -- Return To Player Button ReturnToPlayerButton.Name = "ReturnToPlayerButton" ReturnToPlayerButton.Parent = ContentFrame ReturnToPlayerButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ReturnToPlayerButton.Position = UDim2.new(0.5, -100, 0.1, -15) ReturnToPlayerButton.Size = UDim2.new(0, 200, 0, 30) ReturnToPlayerButton.Font = Enum.Font.SourceSans ReturnToPlayerButton.Text = "Return To Player" ReturnToPlayerButton.TextColor3 = Color3.new(1, 1, 1) ReturnToPlayerButton.TextSize = 20 ReturnToPlayerButton.MouseButton1Down:Connect(function() local LocalPlayer = game.Players.LocalPlayer local Character = LocalPlayer.Character game:GetService("RunService").Stepped:Connect(function() pcall(function() if LocalPlayer.Backpack:FindFirstChild("Bomb") then print("backpack bomb") LocalPlayer.Backpack:FindFirstChild("Bomb").Parent = Character else print("no backpack bomb") end if LocalPlayer.Character:FindFirstChild("Bomb") then print("character bomb") local BombEvent = LocalPlayer.Character:FindFirstChild("Bomb"):FindFirstChild("RemoteEvent") for _,Player in next, game.Players:GetPlayers() do if Player ~= LocalPlayer then if Player.Character and Player.Character.Parent == workspace then warn("Hitting" .. Player.Name) local LastPlace = Character.HumanoidRootPart.CFrame for i=1,50 do Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame end wait(0.1) BombEvent:FireServer(Player.Character, Player.Character:FindFirstChild("CollisionPart")) wait() Character.HumanoidRootPart.CFrame = LastPlace break; end end end else print("No character bomb") end end) end) game.StarterGui:SetCore("SendNotification",{ Title = "Notification"; Text = "RTS loaded"; Icon = "7164585376"; }) game.StarterGui:SetCore("SendNotification",{ Title = "Notification"; Text = "Press button after every round"; Icon = "7164585376"; }) end) -- Infinite Yield Button InfiniteYieldButton.Name = "InfiniteYieldButton" InfiniteYieldButton.Parent = ContentFrame InfiniteYieldButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) InfiniteYieldButton.Position = UDim2.new(0.5, -100, 0.3, -15) InfiniteYieldButton.Size = UDim2.new(0, 200, 0, 30) InfiniteYieldButton.Font = Enum.Font.SourceSans InfiniteYieldButton.Text = "Infinite Yield" InfiniteYieldButton.TextColor3 = Color3.new(1, 1, 1) InfiniteYieldButton.TextSize = 20 InfiniteYieldButton.MouseButton1Click:Connect(function() loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))() end) -- Autofarm Coins Button AutofarmCoinsButton.Name = "AutofarmCoinsButton" AutofarmCoinsButton.Parent = ContentFrame AutofarmCoinsButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) AutofarmCoinsButton.Position = UDim2.new(0.5, -100, 0.5, -15) AutofarmCoinsButton.Size = UDim2.new(0, 200, 0, 30) AutofarmCoinsButton.Font = Enum.Font.SourceSans AutofarmCoinsButton.Text = "Autofarm Coins" AutofarmCoinsButton.TextColor3 = Color3.new(1, 1, 1) AutofarmCoinsButton.TextSize = 20 local autofarmEnabled = false local function autofarmCoins() local visitedCoins = {} while autofarmEnabled do local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() for _, part in pairs(game.Workspace:GetDescendants()) do if part:IsA("BasePart") and part.Size == Vector3.new(0.5, 2.5, 2.5) and part.Name == "PP" and not visitedCoins[part] then visitedCoins[part] = true character:MoveTo(part.Position) wait(0) -- Add a delay to allow the coin to be picked up break -- Exit the loop to avoid multiple teleports at once end end wait(0) -- Adjust the wait time as needed end end AutofarmCoinsButton.MouseButton1Click:Connect(function() autofarmEnabled = not autofarmEnabled AutofarmCoinsButton.Text = autofarmEnabled and "Stop Autofarm Coins" or "Autofarm Coins" if autofarmEnabled then spawn(autofarmCoins) end end) -- Anti-Slippery Function local function setAntiSlippery(enabled) local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() while enabled do -- Update friction for all parts for _, part in pairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0.5) -- Higher friction values end end wait(0.1) -- Adjust the wait time as needed to balance performance and responsiveness end if not enabled then -- Reset friction to default values for _, part in pairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CustomPhysicalProperties = PhysicalProperties.new(0.5, 0.3, 0.5) -- Default friction values end end end end -- Toggle Button ToggleButton.Name = "ToggleButton" ToggleButton.Parent = ContentFrame ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ToggleButton.Position = UDim2.new(0.5, -100, 0.7, -15) ToggleButton.Size = UDim2.new(0, 200, 0, 30) ToggleButton.Font = Enum.Font.SourceSans ToggleButton.Text = "Enable Anti-Slippery" ToggleButton.TextColor3 = Color3.new(1, 1, 1) ToggleButton.TextSize = 20 local antiSlipperyEnabled = false ToggleButton.MouseButton1Click:Connect(function() antiSlipperyEnabled = not antiSlipperyEnabled ToggleButton.Text = antiSlipperyEnabled and "Disable Anti-Slippery" or "Enable Anti-Slippery" setAntiSlippery(antiSlipperyEnabled) end) -- Credits Frame CreditsFrame.Name = "CreditsFrame" CreditsFrame.Parent = MainFrame CreditsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) CreditsFrame.Position = UDim2.new(0, 100, 0, 30) CreditsFrame.Size = UDim2.new(1, -100, 1, -30) CreditsFrame.Visible = false CreditsLabel.Name = "CreditsLabel" CreditsLabel.Parent = CreditsFrame CreditsLabel.BackgroundColor3 = Color3.fromRGB(40, 40, 40) CreditsLabel.Size = UDim2.new(1, 0, 0.7, 0) CreditsLabel.Font = Enum.Font.SourceSans CreditsLabel.Text = "Script By Ocfi\nJoin My Discord" CreditsLabel.TextColor3 = Color3.new(1, 1, 1) CreditsLabel.TextSize = 16 CreditsLabel.TextWrapped = true CopyDiscordLinkButton.Name = "CopyDiscordLinkButton" CopyDiscordLinkButton.Parent = CreditsFrame CopyDiscordLinkButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) CopyDiscordLinkButton.Position = UDim2.new(0.5, -100, 0.8, -15) CopyDiscordLinkButton.Size = UDim2.new(0, 200, 0, 30) CopyDiscordLinkButton.Font = Enum.Font.SourceSans CopyDiscordLinkButton.Text = "Copy Discord Link" CopyDiscordLinkButton.TextColor3 = Color3.new(1, 1, 1) CopyDiscordLinkButton.TextSize = 20 CopyDiscordLinkButton.MouseButton1Click:Connect(function() local success, err = pcall(function() setclipboard("https://discord.gg/EhDUagAhCE") end) if success then print("Discord link copied to clipboard") else warn("Failed to copy link: " .. err) end end) AntiSlipperyTab.MouseButton1Click:Connect(function() ContentFrame.Visible = true CreditsFrame.Visible = false TabIndicator.Position = UDim2.new(0, 0, 0, 0) end) CreditsTab.MouseButton1Click:Connect(function() ContentFrame.Visible = false CreditsFrame.Visible = true TabIndicator.Position = UDim2.new(0, 0, 0, 30) end)