Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then
- game:GetService("Players").LocalPlayer.PlayerScripts.ChildAdded:Connect(function(obj)
- if game:GetService("Players"):FindFirstChild(obj.Name) then
- print("Script CR REMOVED: ",v.Name)
- obj:Destroy()
- end
- end)
- game:GetService("ReplicatedStorage").ChildAdded:Connect(function(obj)
- if game:GetService("Players"):FindFirstChild(obj.Name) then
- print("Remoted CR REMOVED: ",v.Name)
- obj:Destroy()
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- for _,v in pairs(game:GetService("Players").LocalPlayer.PlayerScripts:GetDescendants())do
- coroutine.resume(coroutine.create(function()
- if game:GetService("Players"):FindFirstChild(v.Name) then
- print("Script CR REMOVED: ",v.Name)
- v:Destroy()
- end
- end))
- end
- for _,v in pairs(game:GetService("ReplicatedStorage"):GetChildren())do
- coroutine.resume(coroutine.create(function()
- if game:GetService("Players"):FindFirstChild(v.Name) then
- print("Remoted CR REMOVED: ",v.Name)
- v:Destroy()
- end
- end))
- end
- end)
- else
- print("Run this As Client Pls")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement