Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(game.Workspace:GetDescendants()) do
- if v.Name == "WoodSection" and v.Parent:FindFirstChild("CutEvent") then
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.Parent)
- game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(v.Parent)
- end
- end
- game.Workspace.DescendantAdded:connect(function(Thing)
- wait(0.1)
- if Thing.Name == "WoodSection" and Thing.Parent:FindFirstChild("CutEvent") then
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Thing.Parent)
- game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(Thing.Parent)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement