local RS = game:GetService("ReplicatedStorage") local plr = game:GetService("Players").LocalPlayer local on = false local gui = Instance.new("ScreenGui"); gui.Name="DistTest"; gui.ResetOnSpawn=false; gui.Parent=plr.PlayerGui local main = Instance.new("Frame"); main.Size=UDim2.new(0,200,0,56); main.Position=UDim2.new(0.5,-100,0,150) main.BackgroundColor3=Color3.fromRGB(15,15,25); main.BorderSizePixel=0; main.Parent=gui local dr,ds,sp main.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then dr=true;ds=i.Position;sp=main.Position i.Changed:Connect(function() if i.UserInputState==Enum.UserInputState.End then dr=false end end) end end) game:GetService("UserInputService").InputChanged:Connect(function(i) if dr and (i.UserInputType==Enum.UserInputType.MouseMovement or i.UserInputType==Enum.UserInputType.Touch) then local d=i.Position-ds; main.Position=UDim2.new(sp.X.Scale,sp.X.Offset+d.X,sp.Y.Scale,sp.Y.Offset+d.Y) end end) local t=Instance.new("TextLabel",main); t.Size=UDim2.new(1,-30,0,25); t.BackgroundColor3=Color3.fromRGB(60,30,120) t.BorderSizePixel=0; t.Text=" Distance Spam"; t.TextColor3=Color3.fromRGB(220,220,220); t.TextSize=13; t.Font=Enum.Font.GothamBold; t.TextXAlignment=Enum.TextXAlignment.Left local x=Instance.new("TextButton",main); x.Size=UDim2.new(0,25,0,25); x.Position=UDim2.new(1,-27,0,0) x.BackgroundColor3=Color3.fromRGB(180,50,50); x.Text="X"; x.TextColor3=Color3.fromRGB(255,255,255); x.TextSize=12; x.Font=Enum.Font.GothamBold; x.BorderSizePixel=0 x.MouseButton1Click:Connect(function() on=false; gui:Destroy() end) local btn=Instance.new("TextButton",main); btn.Size=UDim2.new(1,-10,0,25); btn.Position=UDim2.new(0,5,0,28) btn.BackgroundColor3=Color3.fromRGB(40,40,55); btn.Text="Distance Spam: OFF" btn.TextColor3=Color3.fromRGB(200,200,200); btn.TextSize=13; btn.Font=Enum.Font.GothamBold; btn.BorderSizePixel=0 btn.MouseButton1Click:Connect(function() on=not on btn.BackgroundColor3=on and Color3.fromRGB(60,30,120) or Color3.fromRGB(40,40,55) btn.Text="Distance Spam: "..(on and "ON" or "OFF") end) task.spawn(function() while gui.Parent do if on then for i = 1, 50 do pcall(function() RS.Remotes.DistanceWalked:FireServer(49, 160, 0) end) end end task.wait() end end)