while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.05,0.0,0) * CFrame.new(0, 0, 0)
wait(0.001)
end
tried this but it makes your character bug out
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.05,0.0,0) * CFrame.new(0, 0, 0)
wait(0.001)
end
tried this but it makes your character bug out
If the barrel of the minigun welded to the handle you cant make it rotate that will rotate your character too
you need to remove the welds from tool
Also why you need to make one there is some cool minigun models in tool box you can edit them
I dunno how you have created your mini-gun but the easy way I see to achieve this is by adding a Motor attached to the Handle and the rotating barrels. That way, you apply power to the motor on Activated, remove it of Un(?)activated and allow the barrel to spin to a stop/
try this:
local weldBetweenHandAndTool = <weldHere>
local originalC0 = weldBetweenHandAndTool.C0
local ang = 1
while game:GetService("RunService").Stepped:Wait() do
weldBetweenHandAndTool.C0 = originalC0 * CFrame.Angles(math.rad(ang), 0, 0)
ang += 1
end