Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This script wont make the model use Cframe (read before answer)?

Any help is appreciated

Error: https://gyazo.com/7d9ea607d7fbaffaebed9a25d549a57f hierarchy: https://gyazo.com/c024f77e92a1c14f426b5397f562787a

local Alldecenders = script.Parent:GetDescendants()
for index, descendant in pairs(Alldecenders) do
	
local NewCFrame = CFrame.Angles(math.rad(-10),0,0)
Alldecenders.CFrame = Alldecenders.CFrame * NewCFrame

wait(4)
local NewCFrame2 = CFrame.Angles(math.rad(20),0,0)
Alldecenders.CFrame = Alldecenders.CFrame * NewCFrame2

	
	
end


Thanks

1 answer

Instead of forcing the model to do something it was never intended to do, simply use this method:

model:SetPrimaryPartCFrame(CFrame.new(values))

Hope this helped!

2 comments

0

Where do I add this/ replace it for @TheMinecraftSmarts

0

This would be a replacement for all the current code in that script block.

This discussion is preserved as it was. New answers, comments, and votes are closed.