Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I'm loading in this hat script, its loading in backwards. How would I rotate it 180 degrees?

Asked by
X8311 0
7 years ago

local Target = "X8311"

local Character = game.Workspace[Target]

local hat = Instance.new('Hat', Character) hat.AttachmentPos = Vector3.new(0, 1, -5)

local part = Instance.new('Part', hat) part.Name = 'Handle'

local mesh = Instance.new('SpecialMesh') mesh.Parent = part mesh.MeshId = 'rbxassetid://564086473' mesh.TextureId = 'rbxassetid://564086485' mesh.Scale = Vector3.new(.06,.06,.06)

Any ideas on how to rotate the handle 180 degrees on my head?

1
part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(180), 0) -- I think this is correct ;p AstrealDev 728 — 7y
0
Please enclose your code in blocks so we can better read it. antonio6643 426 — 7y

Answer this question