#Part wont tween to me but tween to 0 0 0
1 messages · Page 1 of 1 (latest)
ignore bot part that was me trying to make the bot move to the part but ill focus on that when i get this done
i knew i have to locate the humanoid root part then vector3.new it but i dont know how can you do it
this might be really inefficient but:
i would add a script that welds a part to the hrp when joining (call the part sm unique)
then grab the descendants of the game till it finds the part you added and then grab its location
that's just an idea off the top of my head
you mean adding a part to hrp then make the tweenning part tweento it?
actually wait try doing hrp = workspace:GetDescendants("HumanoidRootPart).Vector3.new
but yea that's basically my idea
i might've messed up the location finding tihng at the end
okay
do i just place the script at the top then make that goal = hrp like this
** You are now Level 1! **
idk bc that result is an error
since ur using server script you should add a function using PlayerAdded, and then have a variable find the hrp.position
and then u can use it
game.Players.PlayerAdded:Connect(function(plr)
local char = plr.CharacterAdded:Wait()
local hrp = char:FindFirstChild("HumanoidRootPart").Position
--add the rest of your code
end)
sample of what i did
move all the code into the function as well
i just woke up ill try that rq
it worked tysm