Hello, I’m currently trying to make a truck system but the connection is not disconnecting and even without firing the event the player starts to get trucked.
for _, CharacterLimb in pairs(Character:GetChildren()) do
if CharacterLimb:IsA("MeshPart") or CharacterLimb:IsA("Part") then
RagdollConnection = CharacterLimb.Touched:Connect(function(Hit)
if Hit.Parent ~= Character then
if Hit.Parent:FindFirstChild("Humanoid") then
task.spawn(function()
RagdollToggleModule:Ragdoll(Hit.Parent)
local RagdollTrigger = Hit.Parent:FindFirstChild("RagdollTrigger")
RagdollTrigger.Value = true
wait(2)
RagdollToggleModule:Unragdoll(Hit.Parent)
RagdollTrigger.Value = false
end)
end
end
end)
end
end
RagdollConnection:Disconnect()
any help appreciated!