Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- LocalScript placed in StarterPlayerScripts or StarterCharacterScripts
- -- Function to delete the specified paths
- local function deletePaths()
- local map = workspace:FindFirstChild("Map")
- if map then
- -- Delete Building
- local building = map:FindFirstChild("Building")
- if building then
- building:Destroy()
- print("Building deleted.")
- else
- print("Building not found.")
- end
- -- Delete Fans
- local fans = map:FindFirstChild("Fans")
- if fans then
- fans:Destroy()
- print("Fans deleted.")
- else
- print("Fans not found.")
- end
- -- Delete Banners
- local banners = map:FindFirstChild("Banners")
- if banners then
- banners:Destroy()
- print("Banners deleted.")
- else
- print("Banners not found.")
- end
- -- Delete NeonLights
- local neonLights = map:FindFirstChild("NeonLights")
- if neonLights then
- neonLights:Destroy()
- print("NeonLights deleted.")
- else
- print("NeonLights not found.")
- end
- else
- print("Map not found.")
- end
- end
- -- Call the function to delete the paths
- deletePaths()
Add Comment
Please, Sign In to add comment