Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local aimenabled = Instance.new("TextButton")
- local fov = Instance.new("TextBox")
- local smoothness = Instance.new("TextBox")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.14317508, 0, 0.222961724, 0)
- Frame.Size = UDim2.new(0, 163, 0, 79)
- aimenabled.Name = "aimenabled"
- aimenabled.Parent = Frame
- aimenabled.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- aimenabled.BorderSizePixel = 0
- aimenabled.Position = UDim2.new(0.0764094591, 0, 0.144265369, 0)
- aimenabled.Size = UDim2.new(0, 30, 0, 52)
- aimenabled.Font = Enum.Font.SourceSans
- aimenabled.Text = ""
- aimenabled.TextColor3 = Color3.fromRGB(0, 0, 0)
- aimenabled.TextSize = 14.000
- fov.Name = "fov"
- fov.Parent = Frame
- fov.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- fov.Position = UDim2.new(0.339562356, 0, 0.144265383, 0)
- fov.Size = UDim2.new(0, 100, 0, 21)
- fov.Font = Enum.Font.SourceSans
- fov.PlaceholderText = "fov"
- fov.Text = ""
- fov.TextColor3 = Color3.fromRGB(0, 0, 0)
- fov.TextSize = 14.000
- smoothness.Name = "smoothness"
- smoothness.Parent = Frame
- smoothness.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- smoothness.Position = UDim2.new(0.339562356, 0, 0.527029574, 0)
- smoothness.Size = UDim2.new(0, 100, 0, 21)
- smoothness.Font = Enum.Font.SourceSans
- smoothness.PlaceholderText = "smoothness"
- smoothness.Text = ""
- smoothness.TextColor3 = Color3.fromRGB(0, 0, 0)
- smoothness.TextSize = 14.000
- -- Scripts:
- local function QCFP_fake_script() -- aimenabled.LocalScript
- local script = Instance.new('LocalScript', aimenabled)
- local TOGGLED = false -- ;)
- local plrs=game:GetService("Players")
- local plr=plrs.LocalPlayer
- local mouse=plr:GetMouse()
- local smallest=math.huge
- local camera=workspace.CurrentCamera
- local fov=tonumber(script.Parent.Parent.fov.Text)
- local smooth=tonumber(script.Parent.Parent.smoothness.Text)
- local inptSrvc=game:GetService("UserInputService")
- local ok
- script.Parent.MouseButton1Click:Connect(function()
- TOGGLED = not TOGGLED
- if TOGGLED == false then
- script.Parent.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
- else
- script.Parent.BackgroundColor3 = Color3.fromRGB(0, 234, 129)
- end
- end)
- local function getnearest()
- smallest=math.huge
- for _,v in pairs(plrs:GetChildren()) do
- if v~=plr then
- if v:FindFirstChild("Status") then
- if v.Status.Team.Value~=plr.Status.Team.Value then
- if workspace:FindFirstChild(v.Name) then
- if v.Character:FindFirstChild("Humanoid") then
- if v.Character.Humanoid.Health > 0 then
- local worldPoint = v.Character.Head.Position
- local vector, onScreen = camera:WorldToScreenPoint(worldPoint)
- local magnitude = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(vector.X, vector.Y)).magnitude
- if smallest>magnitude then
- smallest=magnitude
- ok=v
- end
- end
- end
- end
- end
- end
- end
- end
- end
- game['Run Service'].RenderStepped:connect(function()
- if script.Parent.BackgroundColor3 == Color3.fromRGB(0, 234, 129) then
- getnearest()
- fov=tonumber(script.Parent.Parent.fov.Text)
- smooth=tonumber(script.Parent.Parent.smoothness.Text)
- if inptSrvc:IsMouseButtonPressed(0) then
- if workspace:FindFirstChild(ok.Name) then
- if ok.Character:FindFirstChild("Humanoid") then
- if ok.Character:FindFirstChild("Head") then
- if ok.Character.Humanoid.Health>0.1 then
- local worldPoint = ok.Character.Head.Position
- local vector, onScreen = camera:WorldToScreenPoint(worldPoint)
- local magnitude = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(vector.X, vector.Y)).magnitude
- if magnitude<fov then
- local magnitudeX = mouse.X - vector.X
- local magnitudeY = mouse.Y - vector.Y
- local xsmooth=magnitudeX/smooth
- local ysmooth=magnitudeY/smooth
- mousemoverel(-xsmooth,-ysmooth)
- end
- end
- end
- end
- end
- end
- end
- end)
- end
- coroutine.wrap(QCFP_fake_script)()
Add Comment
Please, Sign In to add comment