getgenv().farm = false local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local StarterGui = game:GetService("StarterGui") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local floatPlatform local function createFloatPlatform() if floatPlatform and floatPlatform.Parent then return end floatPlatform = Instance.new("Part") floatPlatform.Name = "FloatPlatform" floatPlatform.Anchored = true floatPlatform.CanCollide = true floatPlatform.Transparency = 0.95 floatPlatform.Size = Vector3.new(6, 1.0015, 6) floatPlatform.Parent = workspace end local function removeFloatPlatform() if floatPlatform then floatPlatform:Destroy() floatPlatform = nil end end task.spawn(function() while true do if getgenv().farm and floatPlatform and character then local hrp = character:FindFirstChild("HumanoidRootPart") if hrp then floatPlatform.CFrame = CFrame.new(hrp.Position - Vector3.new(0, 3.5, 0)) end end task.wait(0.01) end end) task.spawn(function() local ok, userId = pcall(function() return Players:GetUserIdFromNameAsync("namsobased") end) if ok then local img = Players:GetUserThumbnailAsync( userId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420 ) StarterGui:SetCore("SendNotification", { Title = "namsobased", Text = "✅ Float Platform!", Icon = img, Duration = 4 }) end end) local function createGUI() if player.PlayerGui:FindFirstChild("FloatPlatformGUI") then player.PlayerGui.FloatPlatformGUI:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "FloatPlatformGUI" gui.Parent = player.PlayerGui local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 60, 0, 60) btn.Position = UDim2.new(0.1, 0, 0.1, 0) btn.BackgroundColor3 = Color3.fromRGB(0, 0, 0) btn.BackgroundTransparency = 0.8 btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.TitilliumWeb btn.TextSize = 23 btn.Text = getgenv().farm and "ON" or "OFF" btn.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0.3, 0) corner.Parent = btn btn.MouseButton1Click:Connect(function() getgenv().farm = not getgenv().farm btn.Text = getgenv().farm and "ON" or "OFF" if getgenv().farm then createFloatPlatform() else removeFloatPlatform() end end) local dragging, dragStart, startPos btn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = btn.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) btn.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart btn.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) end createGUI() player.CharacterAdded:Connect(function(newChar) character = newChar task.wait(0.1) if getgenv().farm then createFloatPlatform() end createGUI() end)