local players = Players:GetPlayers()
for i, v in pairs(players) do
if v:FindFirstChild("Values") then
if v.Values.InSubway.Value == true then
print(v.Name)
local clone = FlashLight:Clone()
clone.Parent = v.Backpack
v.Character.Humanoid.Jump = true
v.Character.Humanoid.WalkSpeed = 12
v.Character.Humanoid.JumpPower = 0
task.wait(0.1)
BE.UnWeldSeats:Fire()
task.wait(0.05)
v.Character:PivotTo(TPPart.CFrame)
print(v.Name)
end
end
end
Whenever my friend and I test our game, it only teleports 1 player, ALTHOUGH, the InSubway value is set to true for BOTH of us, the prints print BOTH our names twice, but it doesn’t seem to teleport both of us, just one.
This only happens when BOTH of us are sitting in a seat, we both get teleported if only 1 of us, or none of us sit in a seat.
I guess make it so it teleports your head instead. Also, try adding a Noob startercharacter and see if your friend moves (using PivotTo). Also try adding a 0 second wait, that might magically fix it.
Strange. Maybe setting HumanoidRootPart CFrame would work, based on this fact. All of this seems to depend on the avatar strangely enough. If that doesn’t work try using the original code but add a 0 second wait before teleporting.
Sorry, I just figured it out.
The Humanoid.Jump = true wasn’t working because Humanoid.JumpPower was equal to 0, (even though it came after the script.)