so… i’m making a saw that destroy everything around, but the problem is that it don’t destroy everything i tried to use Remove() and still it doesn’t work. i have no idea how to fix it…
here the video and the code if you wanna se it
local Button = script.Parent
local SawFolder = script.Parent.Saw
local Debounce = false
local tweenservice = game:GetService("TweenService")
Button.MouseButton1Click:Connect(function()
if Debounce == false then
Debounce = true
local BladeCloned = SawFolder.SawBlade:Clone()
local tween = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
10,
true
)
local TweenAnimation = tweenservice:Create(BladeCloned, tween, {Position = Vector3.new(-15.9, 1.487, -26.3)})
BladeCloned.Parent = workspace
local workspaceBlade = workspace.SawBlade
workspaceBlade.idle:Play()
TweenAnimation:Play()
workspaceBlade.Touched:Connect(function(instance)
print(instance.Color)
workspaceBlade.Attachment.ParticleEmitter:Emit(1)
workspaceBlade.Attachment.ParticleEmitter.Color = ColorSequence.new(instance.Color)
workspaceBlade.sawblade_impact1:Play()
instance:Destroy()
end)
task.wait(5.9)
BladeCloned:Destroy()
Debounce = false
end
end)
(The parts are in a folder too)