1 | _G.Reach = 9 |
2 | _G.KeyBindHigher = "r" |
3 | _G.KeyBindLower = "e" |
4 | _G.ReachOff = false |
5 | _G.YThreshold = -1.3 |
6 | _G.Hole = false |
7 | |
8 | game:GetService("RunService").Stepped:Connect(function() |
9 | if _G.ReachOff then return end |
10 | pcall(function() |
11 | local localPlayer = game.Players.LocalPlayer |
12 | local localPlayerPos = localPlayer.Character.HumanoidRootPart.Position |
13 | local reach = tonumber(_G.Reach) |
14 | |
15 | for _, player in pairs(game.Players:GetPlayers()) do |
16 | if player ~= localPlayer and player.Character:FindFirstChild("Left Arm") then |
17 | local targetPos = player.Character.HumanoidRootPart.Position |
18 | local inReach = (localPlayerPos - targetPos).Magnitude <= reach |
19 | |
20 | if _G.Hole then |
21 | if inReach and targetPos.Y > localPlayerPos.Y + _G.YThreshold then |
22 | local rightLeg = player.Character:FindFirstChild("Right Leg") |
23 | if rightLeg then |
24 | rightLeg:BreakJoints() |
25 | rightLeg.Transparency = 1 |
26 | rightLeg.CanCollide = false |
27 | rightLeg.CFrame = localPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(1, 0, -3.5) |
28 | end |
29 | end |
30 | else |
31 | if inReach then |
32 | local rightLeg = player.Character:FindFirstChild("Right Leg") |
33 | if rightLeg then |
34 | rightLeg:BreakJoints() |
35 | rightLeg.Transparency = 1 |
36 | rightLeg.CanCollide = false |
37 | rightLeg.CFrame = localPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(1, 0, -3.5) |
38 | end |
39 | end |
40 | end |
41 | end |
42 | end |
43 | end) |
44 | end) |
45 | |
46 | local Mouse = game.Players.LocalPlayer:GetMouse() |
47 | Mouse.KeyDown:Connect(function(key) |
48 | if key == _G.KeyBindHigher then |
49 | _G.Reach = _G.Reach + 1 |
50 | game.StarterGui:SetCore("SendNotification", { |
51 | Title = "Calidad de graficos", |
52 | Text = "Aumento hasta " .. _G.Reach, |
53 | Icon = "", |
54 | Duration = 1 |
55 | }) |
56 | end |
57 | end) |
58 | |
59 | Mouse.KeyDown:Connect(function(key) |
60 | if key == _G.KeyBindLower then |
61 | _G.Reach = _G.Reach - 1 |
62 | game.StarterGui:SetCore("SendNotification", { |
63 | Title = "Calidad de graficos", |
64 | Text = "Bajo hasta " .. _G.Reach, |
65 | Icon = "", |
66 | Duration = 1 |
67 | }) |
68 | end |
69 | end) |
70 | |
71 | Mouse.KeyDown:Connect(function(key) |
72 | if key == "h" then |
73 | _G.Hole = not _G.Hole |
74 | local status = _G.Hole and "Off" or "On" |
75 | game.StarterGui:SetCore("SendNotification", { |
76 | Title = "Hits En Hole", |
77 | Text = "" .. status, |
78 | Icon = "", |
79 | Duration = 1 |
80 | }) |
81 | end |
82 | end) |