Speeder Physics Problem

Trying to make my vehicles have health that is damage-prone and able to be destroyed. However not only do the bullets not hit it but when I go into first person the vehicle disappears. Does anyone know how to fix this?

https://gyazo.com/2f97610d06ced46cb3865b94f8b89608

I think the reason for this is that you have the speeder as a child of the players character, try to place the speeder somewhere else.

1 Like

Yes, like @GRADE_1000 said when a player goes into first person every visible object in players character will be transparent only for the player. But you can modify this by using local transparency modifier.

2 Likes
Cloned = game.ServerStorage["Speeder"]:clone()

game.ServerStorage[“Speeder”]:remove()

local OriginColor = script.Parent.BrickColor

local JustRegened = false
local RegenWait = 5

Current = nil

local Allowance = 0 – 0 = All, 1 = Group, 2 = GamePass.

local GroupId = 0
local GroupRank = 0
local GamePassId = 382612574

function CheckAllowed(plr)
local ToReturn = false
if Allowance == 0 then
ToReturn = true
elseif Allowance == 1 then
if plr:IsInGroup(GroupId) and plr:GetRankInGroup(GroupId) >= GroupRank then
ToReturn = true
end
elseif Allowance == 2 then
if game:GetService(“MarketplaceService”):PlayerOwnsAsset(plr, GamePassId) == true then
ToReturn = true
end
end
return ToReturn
end

function Click(plr)
if JustRegened == false then
JustRegened = true
script.Parent.BrickColor = BrickColor.new(“Really black”)
coroutine.resume(coroutine.create(function()
if plr then
if plr.Character then
if CheckAllowed(plr) == true then
coroutine.resume(coroutine.create(function()
if plr.Character:findFirstChild(“SpeederVehicle”) ~= nil then
plr.Character[“SpeederVehicle”]:remove()
end
end))
for i, v in pairs(game.Players:GetChildren()) do
coroutine.resume(coroutine.create(function()
if v then
if v.Character then
if v.Character:findFirstChild(“SpeederVehicle”) then
if (v.Character[“SpeederVehicle”][“Speeder”][“Engine”].Position - script.Parent.Position).magnitude <= 10 then
v.Character[“SpeederVehicle”]:remove()
end
end
end
end
end))
wait(0.01)
end
local NewCloneModel = Instance.new(“Model”, plr.Character)
NewCloneModel.Name = “SpeederVehicle”
local NewClone = Cloned:clone()
–NewClone.Parent = plr.Character
NewClone.Parent = NewCloneModel
NewClone[“Weld”].Disabled = false
Current = NewClone
end
else
if Allowance == 2 then
game:GetService(“MarketplaceService”):PromptPurchase(plr, GamePassId)
end
end
end
end))
wait(RegenWait)
JustRegened = false
script.Parent.BrickColor = OriginColor
end
end

script.Parent[“ClickDetector”].MouseClick:connect(Click)

That’s the current code for it. I just moved it from being spawned from the model to being spawned from the ServerStorage. Hoping it’d fix it but it didn’t. Currently trying to figure out how to replace the spawning as a child of the player so it would spawn regularly.