#Cframe tp issue (Y)

1 messages · Page 1 of 1 (latest)

safe steeple
#

is that all of it?

#

it seem to be looping

civic peak
civic peak
safe steeple
#

do you want it updateing the Y position? opr just say it ones

civic peak
#

before tp : 3.002932548522949 (x33) - Client - LocalScript:8
After: it's change a lot until it's come back too : 2.999999761581421 (x45) - Client - LocalScript:8

true hamletBOT
#

studio** You are now Level 4! **studio

safe steeple
#

How is it going to be triggered?

civic peak
#

With the position of part + 7.5 (offset) but keep the Player.Y to not cause bug but ye

safe steeple
#

Oh ok ya, I can help with that tomorrow

#

But hopefully you find someone sooner to help

civic peak
#

Okay thank you @ me when you can

civic peak
# safe steeple Oh ok ya, I can help with that tomorrow

Bc as you can see, I’m already using the player’s current Y, but after teleporting, the client console shows the Y changing a lot before stabilizing. That’s the problem, because it’s visible in-game. A teleport should be smooth — if Y = 2.93, it should stay 2.93, not go 2.91 → 2.92 → 2.93.

safe steeple
#

but i get it

#

been ther

#

what is this for in game? if you want tp

local targetPosition = Vector3.new(0, 10, 0) -- Change to your desired position

teleportPart.Touched:Connect(function(hit)
    local character = hit.Parent
    local humanoidRootPart = character and character:FindFirstChild("HumanoidRootPart")
    if humanoidRootPart then
        humanoidRootPart.CFrame = CFrame.new(targetPosition)
    end
end)
civic peak
#

Sorry just come back i test it when im come back and tell you @safe steeple

safe steeple
#

No worries won’t be home rest of the day

civic peak
safe steeple
#

Task.wait(1)

civic peak
#

Im sure it's not, when im on my pc gonna put some print to see

safe steeple
true hamletBOT
#

studio** You are now Level 5! **studio

civic peak
# safe steeple That if you want the to keep to to that position if not make sure it not in a lo...

I’m not on my PC right now, so I’ll just show you part of my code:

for Index, Microphone in pairs(Microphones) do
    Microphone.Triggered:Connect(function(Player)
        local Character = Player.Character or Player.CharacterAdded:Wait()
        local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
        
        HumanoidRootPart.CFrame = CFrame.new(
            Vector3.new(
                Microphone.Parent.Parent.CFrame.Position.X + Microphone.Parent.Parent.CFrame.LookVector.X * 7.5,
                HumanoidRootPart.Position.Y,
                Microphone.Parent.Parent.CFrame.Position.Z + Microphone.Parent.Parent.CFrame.LookVector.Z * 7.5
            ),
            Microphone.Parent.Parent.CFrame.Position
        )
    end)
end
#

It's not in a loop ?

safe steeple
#

It weird that it spams it

civic peak
#

Oh you asking why it's spam in consol that why :

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local RunService = game:GetService("RunService")

while true do
    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        local pos = player.Character.HumanoidRootPart.Position.Y
        print("Position du joueur:", pos)
        wait(0.05)
    end
end
civic peak
safe steeple
civic peak
#

Y = 3 so it's should stay 3 not 2.95 > 2.96 > 2.97 to 3

safe steeple
civic peak
#

Here the probleme @safe steeple :
As you can see, the player moves slightly after the teleport — that’s the problem. They should be teleported there on the ground and not move afterwards.

safe steeple
#

Oh I see

#

Is it so post also achour the player the the mic?

civic peak
#

I should just anchor the player ?

safe steeple
#

It doesn’t matter it depends on game play

safe steeple