#Help with the look direction
1 messages · Page 1 of 1 (latest)
im a new scripter
local deathPart = workspace:WaitForChild("Death")
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if character then
local hrp = character:FindFirstChild("HumanoidRootPart")
local player = game.Players:GetPlayerFromCharacter(character)
if hrp and player then
-- Teleport player to Death part, facing world front (Z negative)
hrp.CFrame = CFrame.new(deathPart.Position, deathPart.Position + Vector3.new(0, 0, 1))
print(player.Name .. " teleported to Death part facing front")
end
end
end)
--its not facing the proper direction
show what happens
it faces the direction
i face
doesnt change look dir
and
i want it to face front from that white cube
can u help me
can i call u to show vid
no sorry
dont ask why the games like this i dont know scripting
i'll take a look in a bit
k
** You are now Level 2! **
hrp.CFrame = CFrame.new(deathPart.Position)
hrp.CFrame = CFrame.new(deathPart.Position, deathPart.Position + Vector3.new(0, 0, 1))
try this
that instead of this line
replace just that line with the stuff i sent
k
@kind ibex still not workin
strange
i didnt use any remoteEvents or Functions
local deathPart = workspace:WaitForChild("Death")
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if character then
local hrp = character:FindFirstChild("HumanoidRootPart")
local player = game.Players:GetPlayerFromCharacter(character)
if hrp and player then
-- Teleport player to Death part, facing world front (Z negative)
hrp.CFrame = CFrame.new(deathPart.Position)
hrp.CFrame = CFrame.new(deathPart.Position, deathPart.Position + Vector3.new(0, 0, 1))
print(player.Name .. " teleported to Death part facing front")
end
end
end)
u got any more solutions
no, i don't have any ideas
i think we need help
would this work
local deathPart = workspace:WaitForChild("Death")
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if character then
local hrp = character:FindFirstChild("HumanoidRootPart")
local player = game.Players:GetPlayerFromCharacter(character)
if hrp and player then
-- Teleport player to Death part, facing backward (world positive Z)
hrp.CFrame = CFrame.new(deathPart.Position, deathPart.Position + Vector3.new(0, 0, 1))
print(player.Name .. " teleported to Death part facing front")
end
end
end)