View difference between Paste ID: nnYisVbf and CrFhWezK
SHOW: | | - or go back to the newest paste.
1
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro2/main/ui2"))()
2
local NotifyLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro/main/ui"))()
3-
NotifyLib.prompt('Moon God - Q To Lock', 'Loading..', 5)
3+
NotifyLib.prompt('Probably - Q To Lock', 'Loading..', 5)
4-
NotifyLib.prompt('Sets Loaded', 'Son Them', 5)
4+
NotifyLib.prompt('Probably', 'Ew locker', 5)
5-
NotifyLib.prompt('Moon God', 'its abt time ;)', 5)
5+
NotifyLib.prompt('Probably', 'Loaded ;)', 5)
6
7
8
        Settings = {
9
        rewrittenmain = {
10
        Enabled = true,
11
        Key = "q",
12
        DOT = true,
13
        AIRSHOT = true,
14
        NOTIF = true,
15-
        AUTOPRED = false,
15+
        AUTOPRED = true,
16
        FOV = math.huge,
17
        RESOVLER = false
18
    }
19
}
20
21
local SelectedPart = "HumanoidRootPart"
22
local Prediction = true
23
local PredictionValue = 0.1357363
24
25
26
    local AnchorCount = 0
27
    local MaxAnchor = 50
28
29
    local CC = game:GetService"Workspace".CurrentCamera
30
    local Plr;
31
    local enabled = false
32
    local accomidationfactor = 0.136
33
    local mouse = game.Players.LocalPlayer:GetMouse()
34
    local placemarker = Instance.new("Part", game.Workspace)
35
36
    function makemarker(Parent, Adornee, Color, Size, Size2)
37
        local e = Instance.new("BillboardGui", Parent)
38
        e.Name = "PP"
39
        e.Adornee = Adornee
40
        e.Size = UDim2.new(Size, Size2, Size, Size2)
41
        e.AlwaysOnTop = Settings.rewrittenmain.DOT
42
        local a = Instance.new("Frame", e)
43
        if Settings.rewrittenmain.DOT == true then
44
        a.Size = UDim2.new(1, 0, 1, 0)
45
        else
46
        a.Size = UDim2.new(0, 0, 0, 0)
47
        end
48
        if Settings.rewrittenmain.DOT == true then
49
        a.Transparency = 0
50
        a.BackgroundTransparency = 0
51
        else
52
        a.Transparency = 1
53
        a.BackgroundTransparency = 1
54
        end
55
        a.BackgroundColor3 = Color
56
        local g = Instance.new("UICorner", a)
57
        if Settings.rewrittenmain.DOT == false then
58
        g.CornerRadius = UDim.new(0, 0)
59
        else
60
        g.CornerRadius = UDim.new(1, 1) 
61
        end
62
        return(e)
63
    end
64
65
    
66
    local data = game.Players:GetPlayers()
67
    function noob(player)
68
        local character
69
        repeat wait() until player.Character
70
        local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(105, 105, 105), 0.3, 3)
71
        handler.Name = player.Name
72
        player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
73
74
75
        spawn(function()
76
            while wait() do
77
                if player.Character then
78
                end
79
            end
80
        end)
81
    end
82
83
    for i = 1, #data do
84
        if data[i] ~= game.Players.LocalPlayer then
85
            noob(data[i])
86
        end
87
    end
88
89
    game.Players.PlayerAdded:connect(function(Player)
90
        noob(Player)
91
    end)
92
93
    spawn(function()
94
        placemarker.Anchored = true
95
        placemarker.CanCollide = false
96
        if Settings.rewrittenmain.DOT == true then
97
        placemarker.Size = Vector3.new(8, 8, 8)
98
        else
99
        placemarker.Size = Vector3.new(0, 0, 0)
100
        end
101
        placemarker.Transparency = 0.50
102
        if Settings.rewrittenmain.DOT then
103
        makemarker(placemarker, placemarker, Color3.fromRGB(105, 105, 105), 0.40, 0)
104
        end
105
    end)
106
107
    game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
108
        if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
109
            if enabled == true then
110
                enabled = false
111
                if Settings.rewrittenmain.NOTIF == true then
112
                    Plr = getClosestPlayerToCursor()
113
                game.StarterGui:SetCore("SendNotification", {
114-
                    Title = "yarn";
114+
                    Title = "Prob skidded thid";
115
                    Text = "Unlocked",
116-
                    Duration = 3
116+
                    Duration = 2
117
                })
118
            end
119
            else
120
                Plr = getClosestPlayerToCursor()
121
                enabled = true
122
                if Settings.rewrittenmain.NOTIF == true then
123
124
                    game.StarterGui:SetCore("SendNotification", {
125-
                        Title = "yarn";
125+
                        Title = "Prob skidded this";
126
                        Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName),
127-
                        Duration = 3
127+
                        Duration = 2
128
                    })
129
130
                end
131
            end
132
        end
133
    end)
134
135
136
137
    function getClosestPlayerToCursor()
138
        local closestPlayer
139
        local shortestDistance = Settings.rewrittenmain.FOV
140
141
        for i, v in pairs(game.Players:GetPlayers()) do
142
            if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
143
                local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
144
                local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
145
                if magnitude < shortestDistance then
146
                    closestPlayer = v
147
                    shortestDistance = magnitude
148
                end
149
            end
150
        end
151
        return closestPlayer
152
    end
153
154
    local pingvalue = nil;
155
    local split = nil;
156
    local ping = nil;
157
158
    game:GetService"RunService".Stepped:connect(function()
159
        if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
160
            placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
161
        else
162
            placemarker.CFrame = CFrame.new(0, 9999, 0)
163
        end
164
        if Settings.rewrittenmain.AUTOPRED == true then
165
             pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
166
             split = string.split(pingvalue,'(')
167
             ping = tonumber(split[1])
168
            if ping < 130 then
169
                PredictionValue = 0.151
170
            elseif ping < 125 then
171
                PredictionValue = 0.149
172
            elseif ping < 110 then
173
                PredictionValue = 0.146
174
            elseif ping < 105 then
175
                PredictionValue = 0.138
176
            elseif ping < 90 then
177
                PredictionValue = 0.136
178
            elseif ping < 80 then
179
                PredictionValue = 0.134
180
            elseif ping < 70 then
181
                PredictionValue = 0.131
182
            elseif ping < 60 then
183
                PredictionValue = 0.1229
184
            elseif ping < 50 then
185
                PredictionValue = 0.1225
186
            elseif ping < 40 then
187
                PredictionValue = 0.1256
188
            end
189
        end
190
    end)
191
192
    local mt = getrawmetatable(game)
193
    local old = mt.__namecall
194
    setreadonly(mt, false)
195
    mt.__namecall = newcclosure(function(...)
196
        local args = {...}
197
        if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
198
199
            -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
200
            --[[
201
            if Settings.rewrittenmain.AIRSHOT == true then
202
                if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
203
                    
204
                    --// Airshot
205
                    args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
206
207
                else
208
                    args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
209
210
                end
211
            else
212
                    args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
213
            end
214
            ]]
215
            if Prediction == true then
216
                
217
            args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
218
219
            else
220
221
            args[3] = Plr.Character[SelectedPart].Position
222
223
            end
224
225
            return old(unpack(args))
226
        end
227
        return old(...)
228
    end)
229
230
    game:GetService("RunService").RenderStepped:Connect(function()
231
        if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.rewrittenmain.Enabled then
232
        if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
233
            
234
            if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
235
                
236
                --// Airshot
237
238
                --// Anchor Check
239
240
                if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
241
                    AnchorCount = AnchorCount + 1
242
                    if AnchorCount >= MaxAnchor then
243
                        Prediction = false
244
                        wait(2)
245
                        AnchorCount = 0;
246
                    end
247
                else
248
                    Prediction = true
249
                    AnchorCount = 0;
250
                end
251
252
                SelectedPart = "LeftFoot"
253
254
            else
255
                --// Anchor Check
256
257
                if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
258
                    AnchorCount = AnchorCount + 1
259
                    if AnchorCount >= MaxAnchor then
260
                        Prediction = false
261
                        wait(2)
262
                        AnchorCount = 0;
263
                    end
264
                else
265
                    Prediction = true
266
                    AnchorCount = 0;
267
                end
268
269
                SelectedPart = "HumanoidRootPart"
270
271
            end
272
            else
273
274
                --// Anchor Check
275
276
                if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
277
                    AnchorCount = AnchorCount + 1
278
                    if AnchorCount >= MaxAnchor then
279
                        Prediction = false
280
                        wait(2)
281
                        AnchorCount = 0;
282
                    end
283
                else
284
                    Prediction = true
285
                    AnchorCount = 0;
286
                end
287
288
                SelectedPart = "HumanoidRootPart"
289
            end
290
291
        else
292
                SelectedPart = "HumanoidRootPart"
293
        end
294
    end)