Thx for reading I want it to just rotate like when use the tool
local Part = game.Workspace.Part
local holdingUKey = false
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(inputObject)
if(inputObject.KeyCode==Enum.KeyCode.E)then
holdingUKey = true
while holdingUKey do
Part.CFrame = CFrame.Angles(0,math.rad(1),0) * Part.CFrame
wait(0.001)
end
end
end)
UIS.InputEnded:Connect(function(inputObject)
if(inputObject.KeyCode==Enum.KeyCode.E)then
holdingUKey = false
end
end)

1 comment
It hasn't been two hours since you asked the same question.