Sungmingamerpro13

Clean styled Terminal 13

Feb 11th, 2026
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.47 KB | None | 0 0
  1. local tool = script.Parent
  2. local remote = tool:WaitForChild("clearEvent")
  3.  
  4. remote.OnServerEvent:Connect(function(player, target)
  5.  
  6.     if not target then return end
  7.  
  8.     -- Solo limpiar si es exactamente una Part
  9.     if target.Name ~= "Water" then return end
  10.  
  11.     -- Verificar que la escoba esté equipada
  12.     if tool.Parent ~= player.Character then return end
  13.  
  14.     if target and target.Parent then
  15.         target:Destroy()
  16.         game.ReplicatedStorage.numberFound.Value += 1
  17.     end
  18.  
  19. end)
  20.  
Advertisement
Add Comment
Please, Sign In to add comment