how to fix this

function Spawne() 
	
	
	if script.Parent.Parent.Parent.Parent.car.Frame.Buy.Text == "Sold" then
		
	
		local Player = game.Players.LocalPlayer
		local clone = game.Workspace.Cars["Bugatti Chiron"]:Clone()
		clone.Parent = game.Workspace
		clone:MoveTo(Player.Character.Head.Position + Vector3.new(0, 0, 5))
        
	end
	
end

script.Parent.MouseButton1Down:connect(Spawne) 


10 comments

0

the car is falling oujt when spawned

0

can collide = true didnt work

0

Mybe it's getting flung in some way..?

0

i tried it on 2 cars both were super cars and also i tried on one normal car like the bloxburg one

0

are you sure it has nothing to do with the car?

0

idk

0

Is the code in a normal script or in a localscript? It's important this to be in a "normal" Script, so other players see the car or the scripts in the car works as intended

0

ok im gonna check

0

im using a gui Button to spawn it so it dosent work in a local script

0

the seat dosent work on the bloxburg car too if you spawn it