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

Hat Script not functioning, error in output appears?

Asked by 5 years ago

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
1
Is this all one script and can you include the error. User#5423 17 — 5y
1
^ starmaq 1290 — 5y
0
Make sure it's in a local script since you're using LocalPlayer clc02 553 — 5y
0
The script is in a LocalScript now and it gives the error: 13:34:10.087 - Argument 1 missing or nil LargeMakesStuff 2 — 5y

Answer this question