Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Credits: pisokuid5
- ------------------------------------------------
- -- SERVICES
- ------------------------------------------------
- local Players = game:GetService("Players")
- local UIS = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local camera = workspace.CurrentCamera
- ------------------------------------------------
- -- SETTINGS
- ------------------------------------------------
- local Settings = {
- Enabled = false,
- ShowFOV = false,
- FOV = 250,
- Smoothness = 10,
- WallCheck = true,
- TeamCheck = false,
- Key = Enum.KeyCode.G,
- FOVColor = Color3.fromRGB(
- 100,
- 130,
- 255
- ),
- Theme = "Dark Neon"
- }
- ------------------------------------------------
- -- THEMES
- ------------------------------------------------
- local Themes = {
- ["Dark Neon"] = {
- Main = Color3.fromRGB(18,18,25),
- Card = Color3.fromRGB(30,30,40),
- Button = Color3.fromRGB(55,55,75),
- Accent = Color3.fromRGB(90,120,255),
- Text = Color3.fromRGB(240,240,255)
- },
- ["Purple Cyber"] = {
- Main = Color3.fromRGB(25,15,35),
- Card = Color3.fromRGB(55,25,75),
- Button = Color3.fromRGB(90,45,120),
- Accent = Color3.fromRGB(200,80,255),
- Text = Color3.fromRGB(255,240,255)
- }
- }
- ------------------------------------------------
- -- UI HELPERS
- ------------------------------------------------
- local function Corner(obj)
- local c = Instance.new("UICorner")
- c.CornerRadius =
- UDim.new(0,50)
- c.Parent = obj
- end
- local function Tween(obj,time,data)
- TweenService:Create(
- obj,
- TweenInfo.new(
- time,
- Enum.EasingStyle.Quint,
- Enum.EasingDirection.Out
- ),
- data
- ):Play()
- end
- ------------------------------------------------
- -- GUI
- ------------------------------------------------
- local gui = Instance.new("ScreenGui")
- gui.Name =
- "ModernAimTrainer"
- gui.ResetOnSpawn = false
- gui.Parent =
- player.PlayerGui
- ------------------------------------------------
- -- MAIN MENU
- ------------------------------------------------
- local menu = Instance.new("Frame")
- menu.Size =
- UDim2.new(
- 0,
- 560,
- 0,
- 460
- )
- menu.Position =
- UDim2.new(
- .5,
- -280,
- .5,
- -230
- )
- menu.BackgroundColor3 =
- Themes[Settings.Theme].Main
- menu.BorderSizePixel = 0
- menu.Visible = false
- menu.Parent = gui
- Corner(menu)
- local menuScale = Instance.new("UIScale")
- menuScale.Scale = .8
- menuScale.Parent = menu
- ------------------------------------------------
- -- OPEN ANIMATION
- ------------------------------------------------
- local function OpenMenu()
- menu.Visible = true
- Tween(
- menuScale,
- .45,
- {
- Scale = 1
- }
- )
- end
- ------------------------------------------------
- -- TOP BAR
- ------------------------------------------------
- local top = Instance.new("Frame")
- top.Size =
- UDim2.new(
- 1,
- 0,
- 0,
- 60
- )
- top.BackgroundColor3 =
- Themes[Settings.Theme].Card
- top.Parent = menu
- Corner(top)
- local title = Instance.new("TextLabel")
- title.Size =
- UDim2.new(
- .5,
- 0,
- 1,
- 0
- )
- title.Position =
- UDim2.new(
- 0,
- 20,
- 0,
- 0
- )
- title.BackgroundTransparency = 1
- title.Text =
- "Universal Aim"
- title.Font =
- Enum.Font.GothamBold
- title.TextSize = 22
- title.TextColor3 =
- Themes[Settings.Theme].Text
- title.TextXAlignment =
- Enum.TextXAlignment.Left
- title.Parent = top
- ------------------------------------------------
- -- CONTENT
- ------------------------------------------------
- local content = Instance.new("Frame")
- content.Size =
- UDim2.new(
- 1,
- -40,
- 1,
- -90
- )
- content.Position =
- UDim2.new(
- 0,
- 20,
- 0,
- 75
- )
- content.BackgroundTransparency = 1
- content.Parent = menu
- local function CreatePage()
- local p = Instance.new("Frame")
- p.Size =
- UDim2.new(
- 1,
- 0,
- 1,
- 0
- )
- p.BackgroundTransparency = 1
- p.Parent = content
- return p
- end
- local mainPage = CreatePage()
- local settingsPage = CreatePage()
- local infoPage = CreatePage()
- settingsPage.Visible = false
- infoPage.Visible = false
- ------------------------------------------------
- -- RIGHT CTRL MENU TOGGLE
- ------------------------------------------------
- local menuVisible = true
- UIS.InputBegan:Connect(function(input, processed)
- if processed then
- return
- end
- if input.KeyCode == Enum.KeyCode.RightControl then
- menuVisible = not menuVisible
- if menuVisible then
- menu.Visible = true
- TweenService:Create(
- menuScale,
- TweenInfo.new(0.35, Enum.EasingStyle.Back),
- {Scale = 1}
- ):Play()
- else
- TweenService:Create(
- menuScale,
- TweenInfo.new(0.25),
- {Scale = 0.7}
- ):Play()
- task.wait(0.25)
- menu.Visible = false
- end
- end
- end)
- ------------------------------------------------
- -- KEY SYSTEM
- ------------------------------------------------
- local CorrectKey =
- "AimBest2026"
- local keyFrame = Instance.new("Frame")
- keyFrame.Size =
- UDim2.new(
- 0,
- 420,
- 0,
- 260
- )
- keyFrame.Position =
- UDim2.new(
- .5,
- -210,
- .5,
- -130
- )
- keyFrame.BackgroundColor3 =
- Color3.fromRGB(
- 20,
- 20,
- 28
- )
- keyFrame.Parent = gui
- Corner(keyFrame)
- local keyTitle = Instance.new("TextLabel")
- keyTitle.Size =
- UDim2.new(
- 1,
- 0,
- 0,
- 50
- )
- keyTitle.BackgroundTransparency = 1
- keyTitle.Text =
- "KEY SYSTEM"
- keyTitle.Font =
- Enum.Font.GothamBold
- keyTitle.TextSize = 22
- keyTitle.TextColor3 =
- Color3.new(
- 1,
- 1,
- 1
- )
- keyTitle.Parent =
- keyFrame
- local keyBox = Instance.new("TextBox")
- keyBox.Size =
- UDim2.new(
- .7,
- 0,
- 0,
- 45
- )
- keyBox.Position =
- UDim2.new(
- .15,
- 0,
- 0,
- 80
- )
- keyBox.PlaceholderText =
- "Enter Key"
- keyBox.Text = ""
- keyBox.TextColor3 =
- Color3.new(
- 1,
- 1,
- 1
- )
- keyBox.BackgroundColor3 =
- Color3.fromRGB(
- 45,
- 45,
- 60
- )
- keyBox.Parent =
- keyFrame
- Corner(keyBox)
- local checkButton = Instance.new("TextButton")
- checkButton.Size =
- UDim2.new(
- .5,
- 0,
- 0,
- 40
- )
- checkButton.Position =
- UDim2.new(
- .25,
- 0,
- 0,
- 150
- )
- checkButton.Text =
- "CHECK"
- checkButton.Font =
- Enum.Font.GothamBold
- checkButton.TextColor3 =
- Color3.new(
- 1,
- 1,
- 1
- )
- checkButton.BackgroundColor3 =
- Color3.fromRGB(
- 70,
- 120,
- 255
- )
- checkButton.Parent =
- keyFrame
- Corner(checkButton)
- local status = Instance.new("TextLabel")
- status.Size =
- UDim2.new(
- 1,
- 0,
- 0,
- 30
- )
- status.Position =
- UDim2.new(
- 0,
- 0,
- 1,
- -35
- )
- status.BackgroundTransparency = 1
- status.Text = ""
- status.TextColor3 =
- Color3.fromRGB(
- 255,
- 80,
- 80
- )
- status.Parent =
- keyFrame
- ------------------------------------------------
- -- CHECK KEY BUTTON
- ------------------------------------------------
- checkButton.MouseButton1Click:Connect(function()
- if keyBox.Text == CorrectKey then
- status.Text = "Unlocked!"
- task.wait(0.3)
- keyFrame:Destroy()
- menu.Visible = true
- OpenMenu()
- else
- status.Text = "Wrong Key"
- end
- end)
- ------------------------------------------------
- -- TAB BUTTON CREATOR
- ------------------------------------------------
- local function CreateTab(text,x)
- local b = Instance.new("TextButton")
- b.Size =
- UDim2.new(0,75,0,35)
- b.Position =
- UDim2.new(x,0,.5,-17)
- b.Text = text
- b.Font =
- Enum.Font.GothamBold
- b.TextSize = 13
- b.TextColor3 =
- Themes[Settings.Theme].Text
- b.BackgroundColor3 =
- Themes[Settings.Theme].Button
- b.Parent = top
- Corner(b)
- return b
- end
- ------------------------------------------------
- -- TABS
- ------------------------------------------------
- local mainTab =
- CreateTab(
- "MAIN",
- .50
- )
- local settingsTab =
- CreateTab(
- "SETTINGS",
- .66
- )
- local infoTab =
- CreateTab(
- "INFO",
- .84
- )
- ------------------------------------------------
- -- PAGE SWITCH ANIMATION
- ------------------------------------------------
- local function SwitchPage(page)
- for _,p in pairs({
- mainPage,
- settingsPage,
- infoPage
- }) do
- p.Visible = false
- end
- page.Visible = true
- page.Position =
- UDim2.new(1,0,0,0)
- Tween(
- page,
- .35,
- {
- Position =
- UDim2.new(0,0,0,0)
- }
- )
- end
- mainTab.MouseButton1Click:Connect(function()
- SwitchPage(mainPage)
- end)
- settingsTab.MouseButton1Click:Connect(function()
- SwitchPage(settingsPage)
- end)
- infoTab.MouseButton1Click:Connect(function()
- SwitchPage(infoPage)
- end)
- ------------------------------------------------
- -- INFO PAGE
- ------------------------------------------------
- local infoCard = Instance.new("Frame")
- infoCard.Size =
- UDim2.new(1,0,0,240)
- infoCard.Position =
- UDim2.new(0,0,0,20)
- infoCard.BackgroundColor3 =
- Themes[Settings.Theme].Card
- infoCard.Parent = infoPage
- Corner(infoCard)
- local robloxIcon = Instance.new("ImageLabel")
- robloxIcon.Size =
- UDim2.new(0,70,0,70)
- robloxIcon.Position =
- UDim2.new(.5,-35,0,20)
- robloxIcon.BackgroundTransparency = 1
- robloxIcon.Image =
- "rbxassetid://7072719337"
- robloxIcon.Parent = infoCard
- local infoText = Instance.new("TextLabel")
- infoText.Size =
- UDim2.new(1,0,0,100)
- infoText.Position =
- UDim2.new(0,0,0,100)
- infoText.BackgroundTransparency = 1
- infoText.Text =
- "âš¡ AIM TRAINER\n\nVersion: 0.1.14\nCredits: pisokuid5"
- infoText.Font =
- Enum.Font.GothamBold
- infoText.TextSize = 18
- infoText.TextColor3 =
- Themes[Settings.Theme].Text
- infoText.Parent = infoCard
- ------------------------------------------------
- -- THEME BUTTON
- ------------------------------------------------
- local themeButton = Instance.new("TextButton")
- themeButton.Size =
- UDim2.new(0,220,0,45)
- themeButton.Position =
- UDim2.new(.5,-110,0,300)
- themeButton.Text =
- "Theme: "..Settings.Theme
- themeButton.Font =
- Enum.Font.GothamBold
- themeButton.TextSize = 15
- themeButton.TextColor3 =
- Color3.new(1,1,1)
- themeButton.BackgroundColor3 =
- Themes[Settings.Theme].Button
- themeButton.Parent =
- infoPage
- Corner(themeButton)
- local themeNames = {
- "Dark Neon",
- "Purple Cyber",
- "Blue Glass"
- }
- local themeIndex = 1
- ------------------------------------------------
- -- APPLY THEME
- ------------------------------------------------
- local function ApplyTheme()
- local t =
- Themes[Settings.Theme]
- menu.BackgroundColor3 =
- t.Main
- top.BackgroundColor3 =
- t.Card
- title.TextColor3 =
- t.Text
- for _,obj in ipairs(
- gui:GetDescendants()
- ) do
- if obj:IsA("TextLabel")
- or obj:IsA("TextButton") then
- obj.TextColor3 =
- t.Text
- end
- if obj:IsA("Frame") then
- if obj ~= menu then
- obj.BackgroundColor3 =
- t.Card
- end
- end
- end
- end
- themeButton.MouseButton1Click:Connect(function()
- themeIndex += 1
- if themeIndex >
- #themeNames then
- themeIndex = 1
- end
- Settings.Theme =
- themeNames[themeIndex]
- themeButton.Text =
- "Theme: "..Settings.Theme
- ApplyTheme()
- end)
- ------------------------------------------------
- -- ROW CREATOR
- ------------------------------------------------
- local function CreateRow(parent,name,y)
- local frame = Instance.new("Frame")
- frame.Size =
- UDim2.new(1,0,0,50)
- frame.Position =
- UDim2.new(0,0,0,y)
- frame.BackgroundColor3 =
- Themes[Settings.Theme].Card
- frame.Parent =
- parent
- Corner(frame)
- local label = Instance.new("TextLabel")
- label.Size =
- UDim2.new(.6,0,1,0)
- label.Position =
- UDim2.new(0,20,0,0)
- label.BackgroundTransparency = 1
- label.Text =
- name
- label.Font =
- Enum.Font.Gotham
- label.TextSize = 15
- label.TextColor3 =
- Themes[Settings.Theme].Text
- label.TextXAlignment =
- Enum.TextXAlignment.Left
- label.Parent =
- frame
- local button = Instance.new("TextButton")
- button.Size =
- UDim2.new(0,90,0,35)
- button.Position =
- UDim2.new(1,-110,.5,-17)
- button.BackgroundColor3 =
- Themes[Settings.Theme].Button
- button.TextColor3 =
- Themes[Settings.Theme].Text
- button.Font =
- Enum.Font.GothamBold
- button.TextSize = 13
- button.Parent =
- frame
- Corner(button)
- return button
- end
- local function Switch(button,state)
- if state then
- button.Text = "ON"
- else
- button.Text = "OFF"
- end
- end
- ------------------------------------------------
- -- MAIN PAGE
- ------------------------------------------------
- local aimButton =
- CreateRow(
- mainPage,
- "Aim Assist",
- 10
- )
- local fovButton =
- CreateRow(
- mainPage,
- "Show FOV Circle",
- 70
- )
- local keyButton =
- CreateRow(
- mainPage,
- "Aim Key",
- 130
- )
- Switch(
- aimButton,
- Settings.Enabled
- )
- Switch(
- fovButton,
- Settings.ShowFOV
- )
- keyButton.Text =
- Settings.Key.Name
- ------------------------------------------------
- -- AIM BUTTON
- ------------------------------------------------
- aimButton.MouseButton1Click:Connect(function()
- Settings.Enabled =
- not Settings.Enabled
- Switch(
- aimButton,
- Settings.Enabled
- )
- end)
- ------------------------------------------------
- -- FOV BUTTON
- ------------------------------------------------
- fovButton.MouseButton1Click:Connect(function()
- Settings.ShowFOV =
- not Settings.ShowFOV
- Switch(
- fovButton,
- Settings.ShowFOV
- )
- end)
- ------------------------------------------------
- -- KEY CHANGE
- ------------------------------------------------
- local waitingKey = false
- keyButton.MouseButton1Click:Connect(function()
- waitingKey = true
- keyButton.Text =
- "PRESS"
- end)
- UIS.InputBegan:Connect(function(input,processed)
- if processed then
- return
- end
- if waitingKey then
- if input.KeyCode ~= Enum.KeyCode.Unknown then
- Settings.Key =
- input.KeyCode
- keyButton.Text =
- input.KeyCode.Name
- waitingKey = false
- end
- return
- end
- if input.KeyCode ==
- Settings.Key then
- Settings.Enabled =
- not Settings.Enabled
- Switch(
- aimButton,
- Settings.Enabled
- )
- end
- end)
- ------------------------------------------------
- -- TEXTBOX CREATOR
- ------------------------------------------------
- local function CreateTextBox(parent,name,value,y)
- local frame = Instance.new("Frame")
- frame.Size =
- UDim2.new(1,0,0,50)
- frame.Position =
- UDim2.new(0,0,0,y)
- frame.BackgroundColor3 =
- Themes[Settings.Theme].Card
- frame.Parent =
- parent
- Corner(frame)
- local label = Instance.new("TextLabel")
- label.Size =
- UDim2.new(.55,0,1,0)
- label.Position =
- UDim2.new(0,20,0,0)
- label.BackgroundTransparency = 1
- label.Text =
- name
- label.Font =
- Enum.Font.Gotham
- label.TextSize = 15
- label.TextColor3 =
- Themes[Settings.Theme].Text
- label.TextXAlignment =
- Enum.TextXAlignment.Left
- label.Parent =
- frame
- local box = Instance.new("TextBox")
- box.Size =
- UDim2.new(0,120,0,35)
- box.Position =
- UDim2.new(1,-140,.5,-17)
- box.BackgroundColor3 =
- Themes[Settings.Theme].Button
- box.TextColor3 =
- Color3.new(1,1,1)
- box.Text =
- tostring(value)
- box.PlaceholderText =
- "Enter value"
- box.ClearTextOnFocus = false
- box.Font =
- Enum.Font.GothamBold
- box.TextSize = 14
- box.Parent =
- frame
- Corner(box)
- return box
- end
- ------------------------------------------------
- -- SETTINGS PAGE TEXTBOXES
- ------------------------------------------------
- local fovBox =
- CreateTextBox(
- settingsPage,
- "FOV Size",
- Settings.FOV,
- 10
- )
- fovBox.FocusLost:Connect(function()
- local value =
- tonumber(fovBox.Text)
- if value then
- Settings.FOV =
- math.clamp(
- value,
- 50,
- 1000
- )
- else
- fovBox.Text =
- tostring(Settings.FOV)
- end
- end)
- local smoothBox =
- CreateTextBox(
- settingsPage,
- "Smoothness",
- Settings.Smoothness,
- 70
- )
- smoothBox.FocusLost:Connect(function()
- local value =
- tonumber(smoothBox.Text)
- if value then
- Settings.Smoothness =
- math.clamp(
- value,
- 1,
- 100
- )
- else
- smoothBox.Text =
- tostring(Settings.Smoothness)
- end
- end)
- ------------------------------------------------
- -- WALL CHECK
- ------------------------------------------------
- local wallButton =
- CreateRow(
- settingsPage,
- "Wall Check",
- 140
- )
- Switch(
- wallButton,
- Settings.WallCheck
- )
- wallButton.MouseButton1Click:Connect(function()
- Settings.WallCheck =
- not Settings.WallCheck
- Switch(
- wallButton,
- Settings.WallCheck
- )
- end)
- ------------------------------------------------
- -- TEAM CHECK
- ------------------------------------------------
- local teamButton =
- CreateRow(
- settingsPage,
- "Team Check",
- 200
- )
- Switch(
- teamButton,
- Settings.TeamCheck
- )
- teamButton.MouseButton1Click:Connect(function()
- Settings.TeamCheck =
- not Settings.TeamCheck
- Switch(
- teamButton,
- Settings.TeamCheck
- )
- end)
- ------------------------------------------------
- -- SMOOTHNESS INFO TEXT
- ------------------------------------------------
- local smoothInfo = Instance.new("TextLabel")
- smoothInfo.Size =
- UDim2.new(1,0,0,25)
- smoothInfo.Position =
- UDim2.new(0,20,0,125)
- smoothInfo.BackgroundTransparency = 1
- smoothInfo.Text =
- "1 - Smooth , 10 - Not Smooth"
- smoothInfo.Font =
- Enum.Font.Gotham
- smoothInfo.TextSize =
- 13
- smoothInfo.TextColor3 =
- Color3.fromRGB(
- 130,
- 130,
- 140
- )
- smoothInfo.TextXAlignment =
- Enum.TextXAlignment.Left
- smoothInfo.Parent =
- settingsPage
- ------------------------------------------------
- -- FOV CIRCLE
- ------------------------------------------------
- local fovGui = Instance.new("ScreenGui")
- fovGui.Name =
- "ModernFOV"
- fovGui.ResetOnSpawn = false
- fovGui.IgnoreGuiInset = true
- fovGui.Parent =
- player.PlayerGui
- local circle = Instance.new("Frame")
- circle.Name =
- "FOVCircle"
- circle.AnchorPoint =
- Vector2.new(.5,.5)
- circle.Position =
- UDim2.new(.5,0,.5,0)
- circle.Size =
- UDim2.new(
- 0,
- Settings.FOV,
- 0,
- Settings.FOV
- )
- circle.BackgroundTransparency = 1
- circle.Parent =
- fovGui
- local circleCorner =
- Instance.new("UICorner")
- circleCorner.CornerRadius =
- UDim.new(1,0)
- circleCorner.Parent =
- circle
- local circleStroke =
- Instance.new("UIStroke")
- circleStroke.Thickness = 3
- circleStroke.Color =
- Color3.fromRGB(
- 100,
- 130,
- 255
- )
- circleStroke.Parent =
- circle
- ------------------------------------------------
- -- WALL CHECK
- ------------------------------------------------
- local function WallCheck(target)
- if Settings.WallCheck == false then
- return true
- end
- local root =
- target:FindFirstChild(
- "HumanoidRootPart"
- )
- if not root then
- return false
- end
- local params =
- RaycastParams.new()
- params.FilterType =
- Enum.RaycastFilterType.Exclude
- params.FilterDescendantsInstances =
- {
- player.Character,
- target
- }
- local result =
- workspace:Raycast(
- camera.CFrame.Position,
- root.Position -
- camera.CFrame.Position,
- params
- )
- return result == nil
- end
- ------------------------------------------------
- -- TEAM CHECK
- ------------------------------------------------
- local function SameTeam(target)
- if Settings.TeamCheck == false then
- return false
- end
- local targetTeam =
- target:GetAttribute(
- "Team"
- )
- if targetTeam
- and player.Team then
- return targetTeam ==
- player.Team.Name
- end
- return false
- end
- ------------------------------------------------
- -- VALID TARGET
- ------------------------------------------------
- local function ValidTarget(target)
- if target ==
- player.Character then
- return false
- end
- local humanoid =
- target:FindFirstChildOfClass(
- "Humanoid"
- )
- local root =
- target:FindFirstChild(
- "HumanoidRootPart"
- )
- if not humanoid
- or not root then
- return false
- end
- if humanoid.Health <= 0 then
- return false
- end
- if SameTeam(target) then
- return false
- end
- if WallCheck(target) == false then
- return false
- end
- return true
- end
- ------------------------------------------------
- -- FIND TARGET
- ------------------------------------------------
- local function FindTarget()
- local closest = nil
- local shortest =
- Settings.FOV
- for _,obj in ipairs(
- workspace:GetChildren()
- ) do
- if ValidTarget(obj) then
- local root =
- obj:FindFirstChild(
- "HumanoidRootPart"
- )
- local pos,visible =
- camera:WorldToViewportPoint(
- root.Position
- )
- if visible then
- local distance =
- (
- Vector2.new(
- pos.X,
- pos.Y
- )
- -
- Vector2.new(
- camera.ViewportSize.X/2,
- camera.ViewportSize.Y/2
- )
- ).Magnitude
- if distance <
- shortest then
- shortest =
- distance
- closest =
- obj
- end
- end
- end
- end
- return closest
- end
- ------------------------------------------------
- -- AIM LOOP
- ------------------------------------------------
- local target = nil
- RunService.RenderStepped:Connect(function()
- ------------------------------------------------
- -- UPDATE FOV
- ------------------------------------------------
- circle.Visible =
- Settings.ShowFOV
- circle.Size =
- UDim2.new(
- 0,
- Settings.FOV,
- 0,
- Settings.FOV
- )
- ------------------------------------------------
- -- CHECK TARGET
- ------------------------------------------------
- if target then
- if not ValidTarget(target) then
- target = nil
- end
- end
- ------------------------------------------------
- -- AIM
- ------------------------------------------------
- if Settings.Enabled then
- if target == nil then
- target =
- FindTarget()
- end
- if target then
- local root =
- target:FindFirstChild(
- "HumanoidRootPart"
- )
- if root then
- local aim =
- CFrame.lookAt(
- camera.CFrame.Position,
- root.Position
- )
- local smooth =
- math.clamp(
- Settings.Smoothness / 100,
- 0.01,
- 1
- )
- camera.CFrame =
- camera.CFrame:Lerp(
- aim,
- smooth
- )
- end
- end
- else
- target=nil
- end
- end)
- ------------------------------------------------
- -- MENU DRAG
- ------------------------------------------------
- local dragging=false
- local dragStart
- local startPosition
- top.InputBegan:Connect(function(input)
- if input.UserInputType ==
- Enum.UserInputType.MouseButton1 then
- dragging=true
- dragStart =
- input.Position
- startPosition =
- menu.Position
- end
- end)
- top.InputEnded:Connect(function(input)
- if input.UserInputType ==
- Enum.UserInputType.MouseButton1 then
- dragging=false
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if dragging and
- input.UserInputType ==
- Enum.UserInputType.MouseMovement then
- local delta =
- input.Position -
- dragStart
- TweenService:Create(
- menu,
- TweenInfo.new(
- 0.12,
- Enum.EasingStyle.Quint
- ),
- {
- Position =
- UDim2.new(
- startPosition.X.Scale,
- startPosition.X.Offset
- +
- delta.X,
- startPosition.Y.Scale,
- startPosition.Y.Offset
- +
- delta.Y
- )
- }
- ):Play()
- end
- end)
- ------------------------------------------------
- -- RIGHT CTRL MENU HIDE
- ------------------------------------------------
- local menuVisible = true
- UIS.InputBegan:Connect(function(input,processed)
- if processed then
- return
- end
- if input.KeyCode ==
- Enum.KeyCode.RightControl then
- menuVisible =
- not menuVisible
- if menuVisible then
- menu.Visible=true
- TweenService:Create(
- scale,
- TweenInfo.new(
- 0.35,
- Enum.EasingStyle.Back
- ),
- {
- Scale=1
- }
- ):Play()
- else
- TweenService:Create(
- scale,
- TweenInfo.new(
- 0.25
- ),
- {
- Scale=.7
- }
- ):Play()
- task.wait(.25)
- menu.Visible=false
- end
- end
- end)
- ------------------------------------------------
- -- BUTTON HOVER EFFECT
- ------------------------------------------------
- for _,obj in ipairs(
- gui:GetDescendants()
- ) do
- if obj:IsA("TextButton") then
- obj.MouseEnter:Connect(function()
- TweenService:Create(
- obj,
- TweenInfo.new(
- 0.15
- ),
- {
- BackgroundTransparency=.15
- }
- ):Play()
- end)
- obj.MouseLeave:Connect(function()
- TweenService:Create(
- obj,
- TweenInfo.new(
- 0.15
- ),
- {
- BackgroundTransparency=0
- }
- ):Play()
- end)
- end
- end
- ------------------------------------------------
- -- RESPAWN RESET
- ------------------------------------------------
- player.CharacterAdded:Connect(function()
- target=nil
- end)
- ------------------------------------------------
- -- LOADED
- ------------------------------------------------
- print("================================")
- print("Modern Aim Trainer Loaded")
- print("Version: 0.1.14")
- print("Credits: pisokuid5")
- print("Aim Key: "..Settings.Key.Name)
- print("================================")
Add Comment
Please, Sign In to add comment