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