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

Mah hat isn't weldin' to mah head?

Asked by 5 years ago

Alright laddies, I've got a riddle for ya to solve ya hear? It goes a bit like this mateys...

I have this HUGE script that gives a doge hat the the player when touched:

local RS = game:GetService("ReplicatedStorage")
local DogeHeadsFolder = RS:FindFirstChild("DogeHeads")
local h = Instance.new("Accessory")
local p = Instance.new("Part")
local DogeMesh =DogeHeadsFolder:FindFirstChild("NormalDoge") -- Change to mesh needed
h.Name = "NormalDoge"
p.Parent = h
p.Position = Player.Character:FindFirstChild("Head").Position
p.Name = "Handle" 
p.formFactor = 0
p.Size = Vector3.new(2, 1.5, 2)  
p.BottomSurface = 0 
p.TopSurface = 0 
p.Locked = true 
DogeMesh:Clone().Parent = p
h.Parent = Player.Character
h.AttachmentForward = Vector3.new(-0, -0, -1)
h.AttachmentPos = Vector3.new(0, 0.35, 0.3)
h.AttachmentRight = Vector3.new(1, 0, -0)
h.AttachmentUp = Vector3.new(0, 1, 0)

Now if you test this, it will clone the mesh and clone it to the head, BUT it wont weld to it.

EXPLANATION.. THANKS

0
this is in a server script yus MusicalDisplay 173 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Place an attachment inside of the Handle of the accessory that has the same name as the Hat Attachment in the head, it might not look like it will work in studio but it should be perfect when you press play

Ad

Answer this question