Jared4V8Roblox

Script4Gui

Sep 15th, 2019
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. --script for gui xd
  2.  
  3. script.Parent.Activated:Connect(function()
  4. for i,v in pairs(workspace.parts:GetChildren()) do
  5. if v:IsA('Part') then
  6. game.ReplicatedStorage.Delete:FireServer(v) --pretty insecure ngl
  7. end
  8. end
  9. end)
  10.  
  11. game.ReplicatedStorage.Delete.OnServerEvent:Connect(function(player,item)
  12. item:Destroy() --pretty insecure ngl
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment