-
What do you want to achieve?
I want the bucket to be welded infront of the player and make it point up instead to the side -
What is the issue?
I’m not sure how to find the players position and set it, and rotate it -
What solutions have you tried so far?
I’ve found one solution that works, but instead of setting the parts position infront of the player, it sets it at world origin
I haven’t yet tried anything related to the rotation of the bucket yet as I want to fix the main issue
local Bucket = script.Parent
Bucket.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local UPPER_TORSO = hit.Parent.UpperTorso
local weld = Instance.new("Weld")
weld.Part0 = UPPER_TORSO
weld.Part1 = Bucket
weld.Parent = script.Parent
weld.Part1.Position = Vector3.new(0,3,-2)
end
end)
this is what the script produces
The bucket itself is a union if that matters at all