Guys im back ! , i know its pretty confusing but i just want to rotate a part called "steel" . but how do i rotate it?
script.Parent.Activated:Connect(function() script.Parent.BRMM:Play() local animation = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack) script.Parent.Tape.Transparency = 1 script.Parent.STape.Transparency = 1 wait (3.5) script.Parent.Tape.Transparency = 0 script.Parent.STape.Transparency = 0 script.Parent.Steel.Cframe= 2 --I dont have any clue , sorry :( end) script.Parent.Unequipped:Connect(function() script.Parent.BRMM:Stop() end)The location of the part is > script.Parent.Steel but i dont have any idea how to rotate things with scripts , thank you for reading
i hope it helps:
script.Parent.Activated:Connect(function() script.Parent.BRMM:Play() local animation = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack) script.Parent.Tape.Transparency = 1 script.Parent.STape.Transparency = 1 wait (3.5) script.Parent.Tape.Transparency = 0 script.Parent.STape.Transparency = 0 script.Parent.Steel.Cframe = CFrame.new(script.Parent.Steel.CFrame.p,Vector3.new(0,0,0)) end) script.Parent.Unequipped:Connect(function() script.Parent.BRMM:Stop() end)
if it helped, accept the anwser :D