-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlyxHub.luau
157 lines (138 loc) · 4.75 KB
/
AlyxHub.luau
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
local Players = game:GetService("Players")
local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
--#region Cheat Modules
local Visuals = loadstring(game:HttpGet("https://raw.githubusercontent.com/Alyx775c/AlyxHub/refs/heads/main/MM2/Visuals.luau"))().new()
local Chams = Visuals.Chams
local Movement = loadstring(game:HttpGet("https://raw.githubusercontent.com/Alyx775c/AlyxHub/refs/heads/main/Universal/Movement.luau"))()
--#endregion
local GameplayEvents = game:GetService("ReplicatedStorage")
:WaitForChild("Remotes")
:WaitForChild("Gameplay")
local Window = Rayfield:CreateWindow({
Name = "Alyx Hub : Rayfield Edition",
LoadingTitle = "",
LoadingSubtitle = "by alyx775c",
ConfigurationSaving = {
Enabled = true,
FolderName = "AlyxHub", -- Create a custom folder for your hub/game
FileName = "Big Hub",
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
RememberJoins = true, -- Set this to false to make them join the discord every time they load it up
},
KeySystem = true, -- Set this to true to use our key system
KeySettings = {
Title = "",
Subtitle = "Key System",
Note = "",
FileName = "AlyxHubMM2key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
Key = { "AlyxHub__723jjhyCnyxnAL" }, -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
},
})
local MM2Events = {
["RoundStart"] = GameplayEvents:FindFirstChild("RoundStart"),
["KnifeKill"] = GameplayEvents:FindFirstChild("KnifeKill"),
["GunKill"] = GameplayEvents:FindFirstChild("GunKill"),
}
Window:CreateTab("🏠 Home", nil)
local VisualTab = Window:CreateTab("👁️ Visuals", nil)
local MovementTab = Window:CreateTab("🏃♂️ Movement", nil)
local LocalPlayer = Players.LocalPlayer
--#region Visuals
VisualTab:CreateSection("Chams")
local SheriffColor = VisualTab:CreateColorPicker({
Name = "Sheriff Color",
Color = Color3.fromRGB(0, 0, 255),
Flag = "SheriffColor",
})
local MurdererColor = VisualTab:CreateColorPicker({
Name = "Murderer Color",
Color = Color3.fromRGB(255, 0, 0),
Flag = "MurdererColor",
})
local ToggleChatsay = VisualTab:CreateToggle({
Name = "Toggle Chatsay",
CurrentValue = false,
Flag = "Chatsay",
Callback = function(_val)
end
})
local DetectGunDrop = function()
for _, v in workspace:GetDescendants() do
if v.Name == "GunDrop" then
return v
end
end
return nil
end
function GunChams()
local GunDropped = DetectGunDrop()
if GunDropped and not GunDropped:FindFirstChild("Highlight") then
local highlight = Instance.new("Highlight")
highlight.Parent = GunDropped
highlight.FillColor = Color3.fromRGB(255, 255, 0)
highlight.OutlineTransparency = 1
end
end
local ChamsButton = VisualTab:CreateToggle({
Name = "Chams",
CurrentValue = false,
Flag = "ChamsFlag",
Callback = function(val)
local knifeEvent = MM2Events["KnifeKill"].Event:Connect(GunChams)
local gunEvent = MM2Events["GunKill"].Event:Connect(GunChams)
if val then
Chams:RefreshChams(MurdererColor.Color, SheriffColor.Color)
knifeEvent = MM2Events["KnifeKill"].Event:Connect(GunChams)
gunEvent = MM2Events["GunKill"].Event:Connect(GunChams)
if ToggleChatsay.CurrentValue then
for _, v in game:GetService("Players"):GetPlayers() do
local names = {}
for _, v1 in pairs(v.Backpack:GetChildren()) do
names[#names + 1] = v1
if v1.Name == "Knife" then
game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(v.DisplayName .. " has the knife!")
else
if v1.Name == "Gun" then
game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(v.DisplayName .. " currently has the gun!")
end
end
end
end
end
else
knifeEvent:Disconnect()
gunEvent:Disconnect()
for _, plr in Players:GetPlayers() do
if plr.Character:FindFirstChild("Highlight") then
plr.Character:FindFirstChild("Highlight"):Destroy()
end
end
end
end,
})
--#endregion
--#region Movement
MovementTab:CreateSlider({
Name = "Walkspeed",
Range = {12, 100},
Increment = 1,
Suffix = "",
CurrentValue = 16,
Flag = "WalkspeedSlider",
Callback = function(Value)
Movement:ChangeWalkspeed(LocalPlayer, Value)
end,
})
--#endregion
--#region Events
MM2Events["RoundStart"].OnClientEvent:Connect(function()
if ChamsButton.CurrentValue then
Chams:RefreshChams(MurdererColor.Color, SheriffColor.Color)
end
end)
--#endregion