You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want blood to emit when the limb is destroyed by the saw -
What is the issue? Include screenshots / videos if possible!
after emitting once the blood dosent emit or emits only 1-2 times -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
putting different loops
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
for _,v in workspace.Obby.Stage6:GetChildren() do
if v.Name == "SawBladeL" or v.Name == "SawBladeR" then
spawn(function()
while task.wait() do
v.Blade.CFrame = v.Blade.CFrame * CFrame.Angles(0,math.rad(-5),0)
end
end)
v.Blade.Touched:Connect(function(hit)
if hit.Parent then
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Name == "Torso" then return end
local pos = hit.Position
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
for i = 0,30 do
Engine:Emit(pos,nil,{Filter={hit}})
end
RagdollEngine:Ragdoll(hit.Parent,nil,nil,false)
hit.Parent:FindFirstChild("Humanoid").Health = 0
hit:Destroy()
if check then return end
check = true
task.wait(6)
if plr.Character:FindFirstChild("Humanoid").Health == 0 then
plr:LoadCharacter()
end
check = false
end
end
end)
end
end