so i am making a game, and i already have a basic car, thats also scripted.
the car is called “Beach Buddy”
here is the non-destroyed version.
and here is the broken/smashed version
and here is the destroyed version, for example if the car explodes.
i added first person its still a little buggy
i will like any feedback
and here is the car’s table
BeachBuddy = {
FullCarName = "Beach Buddy",
Speed = 106,
Torque = 9600,
TurningWheels = {"Wheel1", "Wheel2"},
Colors = {
Color3.fromRGB(64, 224, 208),
Color3.fromRGB(255, 140, 0),
Color3.fromRGB(50, 205, 50),
Color3.fromRGB(255, 225, 53),
Color3.fromRGB(255, 105, 180),
Color3.fromRGB(138, 43, 226),
Color3.fromRGB(0, 255, 255),
Color3.fromRGB(255, 0, 255),
Color3.fromRGB(10, 10, 60),
Color3.fromRGB(220, 20, 60),
Color3.fromRGB(10, 10, 10),
Color3.fromRGB(245, 245, 245),
Color3.fromRGB(0, 102, 204),
Color3.fromRGB(210, 180, 140),
Color3.fromRGB(107, 142, 35),
Color3.fromRGB(183, 65, 14),
Color3.fromRGB(90, 90, 90),
Color3.fromRGB(230, 230, 230),
Color3.fromRGB(112, 128, 144),
Color3.fromRGB(70, 130, 180),
Color3.fromRGB(34, 139, 34),
},
},
and here is the first person script you are alowed to use this in your games or fix it up if you want, you dont have to give me credit.
local CurrentCamera = workspace.CurrentCamera
local Character = script.Parent
local SteeringRig
task.wait(.5)
Character.Head:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
if Character.Head.LocalTransparencyModifier == 1 then
if Character.Humanoid.SeatPart.Name == "VehicleSeat" and Character.Humanoid.Sit == true then
local Seat = Character.Humanoid.SeatPart
SteeringRig = Seat.Parent.SteeringRig
SteeringRig["Left Arm"].Transparency = 0
SteeringRig["Right Arm"].Transparency = 0
SteeringRig["Left Arm"].Color = Character["Body Colors"].LeftArmColor3
SteeringRig["Right Arm"].Color = Character["Body Colors"].RightArmColor3
if Character:FindFirstChildWhichIsA("Shirt") then
SteeringRig.Clothing.ShirtTemplate = Character.Shirt.ShirtTemplate
else
SteeringRig.Clothing.ShirtTemplate = " "
end
end
else
if SteeringRig ~= nil then
SteeringRig["Left Arm"].Transparency = 1
SteeringRig["Right Arm"].Transparency = 1
SteeringRig = nil
end
end
end)



