RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script that spawns a part then puts it on the players head"
-- local script local part = script.Parent local function onTouched(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local part = Instance.new("Part") part.Parent = game.Workspace part.Name = "Hat" part.Size = Vector3.new(1,1,1) part.Position = player.Character.Head.Position part.CFrame = player.Character.Head.CFrame part.CanCollide = false part.Anchored = true part.Parent = player.Character part.Name = "Hat" end end part.Touched:Connect(onTouched)