The scripts parent is StarterCharacterScripts, error: local PlayerService = game:GetService("Players") local player = PlayerService.LocalPlayer.Character appears
local Hat = Instance.new("Accessory") local MeshType = Instance.new("FileMesh") local HandlePart = Instance.new("Part")
Hat.Parent = player HandlePart.Parent = game.WaitForChild(Hat) MeshType.Parent = game.WaitForChild(HandlePart)
HandlePart.Name = ("Handle")
MeshType.MeshId = 1047997
local PlayerService = game:GetService("Players")
local player = PlayerService.LocalPlayer.Character
local Hat = Instance.new("Accessory")
local MeshType = Instance.new("FileMesh")
local HandlePart = Instance.new("Part")
Hat.Parent = player
HandlePart.Parent = game.WaitForChild(Hat)
MeshType.Parent = game.WaitForChild(HandlePart)
HandlePart.Name = ("Handle")
MeshType.MeshId = 1047997

4 comments
Is this all one script and can you include the error.
^
Make sure it's in a local script since you're using LocalPlayer
The script is in a LocalScript now and it gives the error: 13:34:10.087 - Argument 1 missing or nil