How do I do this?

you can do something like this for alignorientation

local runService = game:GetService("RunService")

local character = script.Parent
local rootPart = character:WaitForChild("HumanoidRootPart")
local alignOrientation = script:WaitForChild("AlignOrientation")
alignOrientation.Attachment0 = rootPart:WaitForChild("RootRigAttachment")

-- every frame update the alignOrientation to rotate in the direction the character is moving
runService.Heartbeat:Connect(function(deltaTime)
	alignOrientation.CFrame = CFrame.lookat(Vector3.zero, rootPart.AssemblyLinearVelocity)
end)
1 Like

Where should this be located?-

StarterCharacterScripts.
The character is script.Parent so it must be in a character.

The script he provided doesn’t work. I’m not in Studio rn, so I can’t help you out.

1 Like

If you’re on studio please help thanks!

1 Like
local runService = game:GetService("RunService")

local character = script.Parent
local rootPart = character:WaitForChild("HumanoidRootPart")
local alignOrientation = Instance.new("AlignOrientation")
alginOrientation.Parent = script
alignOrientation.Attachment0 = rootPart:WaitForChild("RootRigAttachment")

-- every frame update the alignOrientation to rotate in the direction the character is moving
runService.Heartbeat:Connect(function(deltaTime)
	alignOrientation.CFrame = CFrame.lookat(Vector3.zero, rootPart.AssemblyLinearVelocity)
end)

Maybe like this? Still on mobile, sry.

1 Like

I appreciate the help but

How do i make it go out of the right hand/arm everytime i change it it just breaks

i don’t think you can put the attachment inside the right hand it has to stay in the rootpart but you can position it like this

attachment.WorldPosition = rightHand.Position
2 Likes

where should this be? char limit

Nevermind it works thank you!-

Where should this be i’ve tried multiple times

How would i make it positioned to right hand and also how do i make it destroyed after 5 seconds of shooting the web ?