Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = game:GetService("ServerScriptService")
- script.Name = "Memes"
- script.Archivable = false
- local function CheckName(str)
- return game:GetService("Players"):FindFirstChild(str)
- end
- game.DescendantAdded:Connect(function(Descendant)
- if Descendant:IsA("ScreenGui") then
- local Player = nil
- local SplitString = string.split(Descendant:GetFullName(), ".")
- for i = 1, #SplitString do
- local Split = SplitString[i]
- if CheckName(Split) then
- Player = Split
- break
- end
- end
- local Player = Player or "UNKNOWN"
- print(Player .. " :RAN: " .. Descendant:GetFullName())
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement