Post Image

🎃 [2X LUCK] Ultra unFair 🎃

Auto Farm Halloween Candy

delivery-time 1 month ago

Description

Ultra unFair is an action packed Battlegrounds & Fighting game released by BtKing Studios on Roblox

Script
local Module = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Discord%20Inviter/Source.lua"))() Module.Prompt({ invite = "https://discord.gg/Mp9vjHBYC6", name = "Join for more scripts Pudge24" }) -- name is optional Module.Join("invite here") local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local ScreenGui = Instance.new("ScreenGui") ScreenGui.ResetOnSpawn = false local Frame = Instance.new("Frame") local ToggleButton = Instance.new("TextButton") local CloseButton = Instance.new("TextButton") local WaitingFrame = Instance.new("Frame") local WaitingLabel = Instance.new("TextLabel") ScreenGui.Parent = player:WaitForChild("PlayerGui") Frame.Parent = ScreenGui Frame.Size = UDim2.new(0, 250, 0, 100) Frame.Position = UDim2.new(0.5, -125, 0.5, -50) Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ToggleButton.Parent = Frame ToggleButton.Size = UDim2.new(0, 230, 0, 40) ToggleButton.Position = UDim2.new(0, 10, 0, 10) ToggleButton.Text = "Toggle Halloween Candy Farm" ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255) ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.Parent = Frame CloseButton.Size = UDim2.new(0, 20, 0, 20) CloseButton.Position = UDim2.new(1, -25, 0, 5) CloseButton.Text = "X" CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) WaitingFrame.Parent = ScreenGui WaitingFrame.Size = UDim2.new(0, 300, 0, 100) WaitingFrame.Position = UDim2.new(0.5, -150, 0.5, -50) WaitingFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) WaitingFrame.Visible = false WaitingLabel.Parent = WaitingFrame WaitingLabel.Size = UDim2.new(1, 0, 1, 0) WaitingLabel.Text = "Waiting for candy to spawn" WaitingLabel.TextColor3 = Color3.fromRGB(255, 255, 255) WaitingLabel.BackgroundTransparency = 1 WaitingLabel.Font = Enum.Font.SourceSans WaitingLabel.TextSize = 24 local function showWaitingFrame() WaitingFrame.Visible = true WaitingFrame:TweenSizeAndPosition( UDim2.new(0, 300, 0, 100), UDim2.new(0.5, -150, 0.5, -50), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.5, true ) end local function hideWaitingFrame() WaitingFrame:TweenSizeAndPosition( UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.5, true, function() WaitingFrame.Visible = false end ) end local dragging local dragInput local dragStart local startPos local function update(input) local delta = input.Position - dragStart Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end Frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = Frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) Frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end) local farming = false local clickCount = 0 local function teleportToCandy() while farming do local foundCandy = false for _, obj in pairs(workspace.drops:GetChildren()) do if obj.Name == "HalloweenCandy" then humanoidRootPart.CFrame = obj.CFrame * CFrame.new(0, 3, 0) wait(0.1) local proximityPrompt = obj:FindFirstChildOfClass("ProximityPrompt") if proximityPrompt then fireproximityprompt(proximityPrompt) end wait(0.1) foundCandy = true end end if not foundCandy then showWaitingFrame() wait(0.3) else hideWaitingFrame() end end end ToggleButton.MouseButton1Click:Connect(function() clickCount = clickCount + 1 farming = clickCount % 2 == 1 if farming then spawn(teleportToCandy) else farming = false hideWaitingFrame() end end) CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end)
Comments 0

No comments yet.

More from RoScripts

© RoScripts 2024 All Rights Reserved.