New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

My vehicle spawner is working, but the vehicle isn't cloning properly?

Asked by 11 days ago

So basically, everything is doing great with the script, but suddenly once your spawn the vehicle, it is anchored in the air, unable to move, you can't even go in the drivers seat, AND when you go on current client, the jet is invisible for some reason. What is going on?

repeat wait() until game.Players.LocalPlayer.Character

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Rp = game.ReplicatedStorage
local Vehicle1 = Rp.Vehicles.Vehicle1

script.Parent.Vehicle1.MouseButton1Click:connect(function()
    local ClonedVehicle = Vehicle1:Clone()
    ClonedVehicle.Parent = workspace
    ClonedVehicle:MakeJoints()
    ClonedVehicle.PrimaryPart = ClonedVehicle.Main
    ClonedVehicle:setPrimaryPartCFrame(Character.Head.CFrame)
 script.Parent:remove()
end)
0
I am not sure why it does not spawn. But its not visible because when you click current client you see what the server sees and not you. If you use LocalScript it will not be visible to anyone else and it will look like you fly while sitting. bostaffmanbulgaria1 9 — 10d
0
I am too lazy to type a bunch of scripts so here is a model i have that spawns the vehicle. https://www.roblox.com/library/3216521844/CoolSpawner bostaffmanbulgaria1 9 — 10d
0
It is a local script xd Used_Develop 17 — 10d
0
Also I',m not sure the script is working, do I need to put the "spawn car" remote event somewhere else? Used_Develop 17 — 10d
0
How do I add more vehicles to it? Used_Develop 17 — 10d

Answer this question