I have this so far
part = Instance.new('Part',workspace) part.FormFactor = 'Custom' part.Size = Vector3.new(5,4,0.1) part.Anchored = true part.CFrame = game.workspace.DullBakuganroll.Head.CFrame*CFrame.new(0,0,-5)*CFrame.Angles(0,math.pi*1/4,0)
I'm aware that this makes it turn 45 degrees, but how do I make it tilt the same amount, but forwards?
--// Gets player local person = game.workspace:FindFirstChild("DullBakuganroll") or game.workspace:WaitForChild("DullBakuganroll") -- Change to the playername --// Inserts a new part into player part = Instance.new('Part',person) --// Edits part's properties part.FormFactor = 'Custom' part.Size = Vector3.new(5,4,0.1) part.Anchored = true part.Rotation = Vector3.new(0,0,45) -- change any value to however you want --// Makes part follow player while wait() do part.Position = person.Head.CFrame * Vector3.new(0,10,0) -- change to see how far you want it above your head end
There is somethings I changed. I made it simple by using the part's rotation and made it follow you, so it won't stay in place
I made sure it would always go and use FindFirstChild("DullBakuganroll")
and WaitForChild("DullBakuganroll")
so no errors would occur than using game.workspace.DullBakuganroll
I put the part into the player so you can tell where it is.