-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRivalsHack.lua
More file actions
99 lines (85 loc) · 3.04 KB
/
RivalsHack.lua
File metadata and controls
99 lines (85 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
wait(1)
getgenv().Frosties = true
local scriptVersion = " v1.0"
local rstorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local localPlayer = players.LocalPlayer
local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
local Window = Fluent:CreateWindow({
Title = "X03"..scriptVersion,
SubTitle = "Made by X03",
TabWidth = 160,
Size = UDim2.fromOffset(580, 460),
Acrylic = true,
Theme = "Amethyst",
MinimizeKey = Enum.KeyCode.LeftControl
})
local Tabs = {
Main = Window:AddTab({ Title = "Main", Icon = "" })
}
Window:SelectTab(1)
local Farm = Tabs.Main:AddSection("[Auto Farm]")
local function tpabove()
local path = rstorage.Assets.Temp.ViewModels:GetChildren()
local fightingplayers = {}
for _, model in ipairs(path) do
local fplayername = model.Name:gsub(" - .*", "")
if fplayername ~= localPlayer.Name and not table.find(fightingplayers, fplayername) then
table.insert(fightingplayers, fplayername)
end
end
if #fightingplayers > 0 then
local DuelingPlayer = fightingplayers[1]
print("You are fighting with:", DuelingPlayer)
local targetPlayer = players:FindFirstChild(DuelingPlayer)
if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
local HRP = localPlayer.Character:FindFirstChild("HumanoidRootPart")
if HRP then
while true do
local EnemyHRP = targetPlayer.Character.HumanoidRootPart
if EnemyHRP and targetPlayer.Character:WaitForChild('Humanoid').Health > 0 then
local newpos = EnemyHRP.Position + Vector3.new(0, 6, 0)
local newcframe = CFrame.new(newpos) * CFrame.Angles(math.rad(90), 0, 0)
HRP.CFrame = newcframe
wait(0.01)
else
print("Player Dead")
break
end
end
else
print("Local player's HumanoidRootPart not found")
end
else
print("Target player not found")
end
else
print("No dueling players found.")
end
end
Farm:AddParagraph({
Title = "NOTE:",
Content = "This only works in 1v1's or 1v1v1's.\nUsing it in other modes may not work.\nUse on alt accounts to avoid bans!"
})
Farm:AddKeybind("Keybind", {
Title = "KeyBind to teleport above enemy",
Mode = "Toggle",
Default = "O",
Callback = function()
tpabove()
end;
})
Farm:AddButton({
Title = "Teleport Above Enemy",
Description = "This will constantly teleport you above the enemy.",
Callback = function()
tpabove()
end
})
Farm:AddButton({
Title = "ESP",
Description = "This lets you see all players easily.",
Callback = function()
loadstring(game:HttpGet("https://pastebin.com/raw/2mLm7JFz"))()
end
})