I’m trying to make a hand appear behind a player using “:SetPrimaryPartCframe” but for some reason it only teleports the hand for a split second and then it teleports the hand back
-- Replace 'PartToTeleport' with the name of your Part or Model
local part = game.Workspace.PartToTeleport
-- Replace these coordinates with your desired teleport destination
local destination = Vector3.new(10, 5, 15)
-- Function to teleport the part to the destination
local function teleportObject()
-- Calculate the new CFrame for the part
local newCFrame = CFrame.new(destination)
-- Set the PrimaryPart's CFrame to the new CFrame
part:SetPrimaryPartCFrame(newCFrame)
-- Disconnect the function after one frame to avoid continuous teleportation
disconnectHandle:Disconnect()
end
-- Connect teleportObject function to RunService.Stepped event
local disconnectHandle
disconnectHandle = game:GetService("RunService").Stepped:Connect(function()
teleportObject()
end)