Which one would work? If neither will, how do I make it so that it will?
game.Workspace.MUSHR0OM.Humanoid.Head.Mesh:remove() h = game.Instance.new("CylinderMesh") s = game.Instance.new("Sparkles") o = game.Instance.new("OutlineBox") game.Workspace.MUSHR0OM.Humanoid.Head == h game.Workspace.MUSHR0OM.Humanoid.Head == s game.Workspace.MUSHR0OM.Humanoid.Head == o end
game.Workspace.MUSHR0OM.Humanoid.Head.Mesh:remove() h = game.Instance.new("CylinderMesh") s = game.Instance.new("Sparkles") o = game.Instance.new("OutlineBox") game:GetService("InsertService") game.Workspace.MUSHR0OM.Humanoid.Head:InsertService(h) game.Workspace.MUSHR0OM.Humanoid.Head:InsertService(s) game.Workspace.MUSHR0OM.Humanoid.Head:InsertService(o) end end end
end
This is probably what you were going for-
local head = Workspace.MUSHR0OM:WaitForChild("Head") -- I'd make a variable for your head head:FindFirstChild("Mesh"):Destroy() -- remove old mesh local cylmsh = Instance.new("CylinderMesh") -- creates cylinder mesh local spark = Instance.new("Sparkles") -- creates sparkles local box = Instance.new("SelectionBox") -- creates selection box cylmesh.Parent = head -- puts cylinder mesh into head spark.Parent = head -- puts sparkles into head box.Parent = head -- puts selection box into head