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

Teleport script teleporting me to wrong spot? [SOLVED BY OP]

For some reason, this car teleport script is teleporting me to the wrong spot. It offsets me far from the vehicle for some weird reason, and I can't find the reason why.

ServerScriptService script:

game.ReplicatedStorage.TelePajero.OnServerEvent:connect(function(plr)
    local PajeroLoc = CFrame.new(-207.298, 134.823, -384.41)
    plr.Character:SetPrimaryPartCFrame(PajeroLoc)
end)

Car spawn script:

script.Parent.MouseButton1Click:connect(function(GetCar)
		local Mod = game.ServerStorage.Pajero     --Change test to whatever you have named the item you want to spawn
		local clone = Mod:Clone()
		clone.DeSpawn.Disabled = false
		clone.Name = "PajeroPlayer"
		clone.Parent = workspace
		clone:MakeJoints()
end)

EDIT: Whoops, I realized I fired the wrong teleport server! Problem solved!

2 comments

0

You never fired the RemoteEvent?

0

I forgot to mention it. It's in another reply.

1 answer

I forgot to mention the button script that fires the server thing.

script.Parent.MouseButton1Click:connect(function()
    game.ReplicatedStorage.TeleCelica:FireServer()
end)

I fired the wrong server, whoopsies.

1 comment

0

edit your question to say [SOLVED] in the title so people don't come here to answer a solved question.

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