Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

car wont teleport as needed what is problem?

i have gui button if i press it then car will teleport to place i needed but wheels wont move and when i sit in car wheels will tear it apart

local Camera  = game.Workspace.CurrentCamera
local startCFrame = CFrame.new(-30.12, 4.018, 22.29) * CFrame.Angles(0, 0, math.rad(-90))
local endCFrame = CFrame.new(-30.37, 5, -218.21) * CFrame.Angles(0,0, math.rad(-90))
local model = game.Workspace.cars.Rally7

script.Parent.MouseButton1Click:Connect(function()
	model:SetPrimaryPartCFrame(endCFrame)
	model.fhoodB.Anchored = false
	script.Parent.Parent.Parent.Enabled = false
	Camera.CameraType = "Scriptable"
	Camera.CFrame = game.Workspace.cars.Rally7.campartrace1.CFrame
	game.Players.LocalPlayer.character.LowerTorso.CFrame = CFrame.new(-30.37, 5, -218.21)
	
end)

my car

https://www.roblox.com/library/5462146752/Rally7

1 comment

0

the teleport should be made via ServerScript

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.