#my teleport script doesnt teleport me all the way

1 messages · Page 1 of 1 (latest)

split wedge
#

help

#

script.Parent.Triggered:Connect(function(plr)
plr.Character:MoveTo(script.Parent.Parent.Part2.Position)
end)

woeful cove
# split wedge script.Parent.Triggered:Connect(function(plr) plr.Character:MoveTo(script.Pa...

script.Parent.Triggered:Connect(function(plr)
local character = plr.Character
if not character then return end

local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if not humanoidRootPart then return end

local targetPart = script.Parent.Parent:FindFirstChild("Part2")
if not targetPart then return end

-- Set position directly (bypasses physics)
humanoidRootPart.CFrame = targetPart.CFrame + Vector3.new(0, 3, 0) -- Added Y offset to avoid getting stuck

end)

woeful cove
split wedge
#

yeah

woeful cove
#

local Players = game:GetService("Players")

script.Parent.Triggered:Connect(function(plr)
-- Get character and ensure it exists
local character = plr.Character or plr.CharacterAdded:Wait()
if not character then
warn("Character not found for player: " .. plr.Name)
return
end

-- Wait for HumanoidRootPart to be available
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
if not humanoidRootPart then 
    warn("HumanoidRootPart not found for: " .. plr.Name)
    return 
end

-- Find the target part
local targetPart = script.Parent.Parent:FindFirstChild("Part2")
if not targetPart then 
    warn("Target part 'Part2' not found")
    return 
end

-- Add a slight Y offset to prevent getting stuck in the ground
local teleportPosition = targetPart.Position + Vector3.new(0, 3, 0)

-- Teleport the player
humanoidRootPart.CFrame = CFrame.new(teleportPosition)

-- Optional: Add visual effects
local teleportEffect = Instance.new("Part")
teleportEffect.Size = Vector3.new(4, 4, 4)
teleportEffect.Position = teleportPosition
teleportEffect.Anchored = true
teleportEffect.CanCollide = false
teleportEffect.Material = Enum.Material.Neon
teleportEffect.Color = Color3.fromRGB(0, 162, 255)
teleportEffect.Parent = workspace

game:GetService("TweenService"):Create(
    teleportEffect, 
    TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
    {Size = Vector3.new(0, 0, 0), Transparency = 1}
):Play()

game.Debris:AddItem(teleportEffect, 1.5)

end)

#

Stfu

jaunty merlinBOT
#

studio** You are now Level 1! **studio

split wedge
woeful cove
#

Why

split wedge
#

idk bra

#

i found out why

#

local Tweens = game:GetService("TweenService")
local Run = game:GetService("RunService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HRP = Character:WaitForChild("HumanoidRootPart")
local Mouse = Player:GetMouse()

Run.RenderStepped:Connect(function()
local Tween = Tweens:Create(HRP, TweenInfo.new(0.2), {CFrame = CFrame.lookAt(HRP.CFrame.Position, Vector3.new(Mouse.Hit.Position.X, HRP.CFrame.Position.Y, Mouse.Hit.Position.Z))})
Tween:Play()
end)

this script

split wedge
#

ye

woeful cove
jaunty merlinBOT
#

studio** You are now Level 10! **studio