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:
What do you want to achieve? Keep it simple and clear!
I need this thing to work pls.
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.
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!
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)