-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
asdadsasdasdasd
32 lines (26 loc) · 880 Bytes
/
asdadsasdasdasd
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
local Players = game:GetService("Players")
local OldNameCall = nil
getgenv().SendNotifications = false -- Set to true if you want to get notified regularly.
OldNameCall = hookmetamethod(game, "__namecall", function(Self, ...)
local NameCallMethod = getnamecallmethod()
if tostring(string.lower(NameCallMethod)) == "kick" then
if getgenv().SendNotifications == true then
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "",
Text = "",
Icon = "",
Duration = 0,
})
end
return nil
end
return OldNameCall(Self, ...)
end)
if getgenv().SendNotifications == true then
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "",
Text = "",
Icon = "",
Duration = 5,
})
end