Tool Equip Bug after Exiting a weld

This is a support category for asking questions about how to get something done on the Roblox websites or how to do something on Roblox applications such as Roblox Studio.

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I need this thing to work pls.

  1. What is the issue? Include screenshots / videos if possible!

The issue is that whenever I equip a tool after my car seat part gets destroyed, I get teleported to the original position. Everything is unanchored and stuff and the guns work fine before this. It just only happens whenever the car gets destroyed. Any help is a appreciated.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have tried almost everything and nothing has really worked out so far.

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!

what i understand : You get the teleported to the original place when you are holding a tool after the car gets destroyed

Sometimes your tool may be weld to another part, for example the floor, try removing the weld

It’s because you have it anchored or welded. Remove it as fast as possible, and it should fix your issue.

1 Like

1st of all, he said that they are all unanchored
2nd of all, that’s literally what i said :skull:

I didn’t notice your response. He might still have it anchored, though. I had that same type of issue before

1 Like

So you think i should do whenever I hold out my gun I delete the weld. But I don’t know what weld that would be causing it.

Its not anchored it works perfectly fine its just whenever I destroy the car it seems to be like that. I pretty sure it might be from a weld. But Im pretty sure I have disposed of that weld.

Health:GetPropertyChangedSignal("Value"):Connect(function()
	if Health.Value <= 0 and Destroyed == false then
		
		Destroyed = true
		
		for _,v in pairs(Car:GetDescendants()) do
				if v:IsA("LocalScript") then
				end
				if v:IsA("Part") or v:IsA("MeshPart") then
					v.Anchored = true
				end
				if v:IsA("Seat") or v:IsA("VehicleSeat") then
					v.Disabled = true 
				end
				if v:IsA("Script") or v:IsA("LocalScript") then
					if v == script then continue end
					v.Disabled = true
				if v:IsA("ModuleScript") then
					v:Destroy()
				end 
			end

		end
		
		for _,v in pairs(Car:GetDescendants()) do
		if v:IsA("Seat") or v:IsA("VehicleSeat") then
			v:Destroy()
		end
		end
		
		for _,v in pairs(Car:GetDescendants()) do
			if v:IsA("Weld") then
				v:Destroy()
			end
		end
		task.wait(1)
		
		
		local Effect = game.ReplicatedStorage.Effects.Explode:Clone()
		Effect.Position = FrontHit.Position
		Effect.Anchored = true
		Effect.Parent = workspace
		
		task.wait(1)
		
		for _,v in pairs(Effect.Attachment:GetChildren()) do
			if v:IsA("ParticleEmitter") then
				v:Emit(5)
			end
		end

		task.delay(5,function()
			Effect:Destroy()
			Car:Destroy()
		end)
		
	end
	if Health.Value < 500  and Health.Value > 200 then
		print("Critical")
		Engine.Smoke.Enabled = true
	end
end)