Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local remote = tool:WaitForChild("clearEvent")
- remote.OnServerEvent:Connect(function(player, target)
- if not target then return end
- -- Solo limpiar si es exactamente una Part
- if target.Name ~= "Water" then return end
- -- Verificar que la escoba esté equipada
- if tool.Parent ~= player.Character then return end
- if target and target.Parent then
- target:Destroy()
- game.ReplicatedStorage.numberFound.Value += 1
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment