I was asking how to make a blox fruits type hold e to aim ability type thing in my script, then the only answer I got was use align orientation, so how do I do this?
UIP.InputBegan:Connect(function(Input, GPE)
if GPE then return end
if Input.KeyCode == Enum.KeyCode.E and Debounce == 1 and toolquip == true then
print("Local Script Recieved Input . . .")
Debounce = 2
spawn(function()
ic = true
wait(0.41)
ic = false
end)
root.Anchored = true
track:Play()
wait(0.15)
track:AdjustSpeed(0)
if (root.Position - mouse.Hit.Position).Magnitude >= 2 then
while Debounce == 2 do
wait()
root.CFrame = CFrame.lookAt(root.Position,mouse.Hit.Position)
end
end
end
end)
this is my input began detector, and it includes how I originally did this aim thing, how do I replace it with align orientation